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 number Diff line number Diff line change 1
1
block = [
2
2
block_header,
3
- block_data: ~encoded-cbor, ; deterministically encoded CBOR
4
- validator_signature ,
3
+ block-data,
4
+ validator-signature ,
5
5
]
6
6
7
7
block_header = [
8
- chain_id : ULID,
8
+ chain-id : ULID,
9
9
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,
14
14
?validator,
15
15
~metadata,
16
16
]
17
17
18
+ block-data = encoded-cbor
19
+
18
20
UUID = #6.37(bytes) ; UUID type
19
21
ULID = #6.32780(bytes) ; ULID type
20
22
21
23
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
24
26
#6.32783(bytes) ; Blake2s hash
25
27
)
26
28
kid = hash_bytes ; hash of the x509/c509 certificate
27
29
28
30
validator = (kid / [2* kid])
29
31
metadata = [ *any ]
30
32
31
- validator_signature = (bytes / [2* bytes])
33
+ validator-signature = (bytes / [2* bytes])
You can’t perform that action at this time.
0 commit comments