-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(catalyst-gateway): add draft schema for RBAC registrations
- Loading branch information
1 parent
b96002e
commit e2e2001
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
catalyst-gateway/bin/src/db/index/schema/cql/cip509_registration.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Index of CIP-509 registrations. Valid. | ||
CREATE TABLE IF NOT EXISTS cip509_registration ( | ||
-- Primary Key Data | ||
vote_key blob, -- 32 Bytes of Vote Key. | ||
stake_address blob, -- 32 Bytes of Stake Address. | ||
nonce varint, -- Nonce that has been slot corrected. | ||
slot_no varint, -- slot number when the key_was_registered/re-registered. | ||
txn smallint, -- Index of the TX which holds the registration data. | ||
|
||
-- Non-Key Data | ||
purpose blob, -- 16 Bytes of UUIDv4 Purpose. | ||
txn_inputs_hash blob, -- 16 Bytes of TX inputs hash. | ||
prv_txn_id blob, | ||
-- WIP: what data is relevant for indexing | ||
-- x509_chunks list<blob>, -- x509 chunks. | ||
validation_signature blob, -- Validation signature. | ||
|
||
PRIMARY KEY ((vote_key, stake_address), nonce, slot_no, txn) | ||
) | ||
WITH CLUSTERING ORDER BY (nonce DESC, slot_no DESC, txn DESC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters