File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
docs/src/architecture/08_concepts/immutable_ledger/cddl Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 11block = [
22 block_header,
3- block_data: ~encoded-cbor, ; deterministically encoded CBOR
4- validator_signature ,
3+ block-data,
4+ validator-signature ,
55]
66
77block_header = [
8- chain_id : ULID,
8+ chain-id : ULID,
99 height: int,
10- timestamp: ~ #6.1(uint .ge 1722470400), ; Epoch-based date/time
11- prev_block_id : hash_bytes, ; hash of the previous block
12- ?ledger_type : UUID,
13- ?purpose_id : ULID / UUID,
10+ timestamp: #6.1(uint .ge 1722470400), ; Epoch-based date/time
11+ prev-block-id : hash_bytes, ; hash of the previous block
12+ ?ledger-type : UUID,
13+ ?purpose-id : ULID / UUID,
1414 ?validator,
1515 ~metadata,
1616]
1717
18+ block-data = encoded-cbor
19+
1820UUID = #6.37(bytes) ; UUID type
1921ULID = #6.32780(bytes) ; ULID type
2022
2123hash_bytes = (
22- #6.32781(bytes) \ ; Blake3 hash
23- #6.32782(bytes) \ ; Blake2b hash
24+ #6.32781(bytes) / ; Blake3 hash
25+ #6.32782(bytes) / ; Blake2b hash
2426 #6.32783(bytes) ; Blake2s hash
2527)
2628kid = hash_bytes ; hash of the x509/c509 certificate
2729
2830validator = (kid / [2* kid])
2931metadata = [ *any ]
3032
31- validator_signature = (bytes / [2* bytes])
33+ validator-signature = (bytes / [2* bytes])
You can’t perform that action at this time.
0 commit comments