Skip to content

Commit 2cde1b3

Browse files
committed
add comment which specifies a CBOR encoding/decoding profile
1 parent bf461c3 commit 2cde1b3

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

docs/src/architecture/08_concepts/catalyst_voting/cddl/gen_vote_tx.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
gen-vote-tx<choice-t, proof-t, prop-id-t, voter-data-t> = [
25
tx-body<choice-t, proof-t, prop-id-t, voter-data-t>,
36
signature
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
cose-payload = blake2b-256
25
blake2b-256 = #6.32782(bytes .size 32) ; Blake2b-256 hash bytes

docs/src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2_private.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
vote-tx-v2<voter-data-t> = gen-vote-tx<choice-data, proof-data, proposal, voter-data-t>
25

36
choice-data = ciphertext

docs/src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2_public.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
vote-tx-v2-public<voter-data-t> = gen-vote-tx<choice-data, proof-data, proposal, voter-data-t>
25

36
choice-data = uint

docs/src/architecture/08_concepts/immutable_ledger/cddl/block.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
block = [
25
block-header,
36
block-data,

docs/src/architecture/08_concepts/immutable_ledger/cddl/genesis_to_prev_hash.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
genesis-to-prev-hash = [
25
chain-id: ULID,
36
timestamp: #6.1(uint .ge 1722470400), ; Epoch-based date/time

docs/src/architecture/08_concepts/immutable_ledger/cddl/hash.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
; All encoders/decoders of this specification must follow deterministic cbor encoding rules
2+
; https://datatracker.ietf.org/doc/html/draft-ietf-cbor-cde-06
3+
14
hash-bytes = (
25
#6.32781(bytes) / ; Blake3 hash
36
#6.32782(bytes) / ; Blake2b hash

0 commit comments

Comments
 (0)