Skip to content

Commit ed6da67

Browse files
committed
fix
1 parent 93ccfed commit ed6da67

File tree

1 file changed

+12
-10
lines changed
  • docs/src/architecture/08_concepts/immutable_ledger/cddl

1 file changed

+12
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
block = [
22
block_header,
3-
block_data: ~encoded-cbor, ; deterministically encoded CBOR
4-
validator_signature,
3+
block-data,
4+
validator-signature,
55
]
66

77
block_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+
1820
UUID = #6.37(bytes) ; UUID type
1921
ULID = #6.32780(bytes) ; ULID type
2022

2123
hash_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
)
2628
kid = hash_bytes ; hash of the x509/c509 certificate
2729

2830
validator = (kid / [2* kid])
2931
metadata = [ *any ]
3032

31-
validator_signature = (bytes / [2* bytes])
33+
validator-signature = (bytes / [2* bytes])

0 commit comments

Comments
 (0)