-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix immutable ledger cddl definitions
- Loading branch information
Showing
5 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
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
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
19 changes: 8 additions & 11 deletions
19
docs/src/architecture/08_concepts/immutable_ledger/cddl/genesis_to_prev_hash.cddl
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 |
---|---|---|
@@ -1,18 +1,15 @@ | ||
genesis_to_prev_hash = [ | ||
chain_id: ULID, | ||
timestamp: ~#6.1(uint .ge 1722470400), ; Epoch-based date/time | ||
ledger_type: UUID, | ||
purpose_id: ULID / UUID, | ||
genesis-to-prev-hash = [ | ||
chain-id: ULID, | ||
timestamp: #6.1(uint .ge 1722470400), ; Epoch-based date/time | ||
ledger-type: UUID, | ||
purpose-id: ULID / UUID, | ||
validator, | ||
] | ||
|
||
UUID = #6.37(bytes) ; UUID type | ||
ULID = #6.32780(bytes) ; ULID type | ||
|
||
validator = (kid / [2* kid]) | ||
kid = hash_bytes ; hash of the x509/c509 certificate | ||
hash_bytes = ( | ||
#6.32781(bytes) \ ; Blake3 hash | ||
#6.32782(bytes) \ ; Blake2b hash | ||
#6.32783(bytes) ; Blake2s hash | ||
) | ||
kid = hash-bytes ; hash of the x509/c509 certificate | ||
|
||
;# include hash |
5 changes: 5 additions & 0 deletions
5
docs/src/architecture/08_concepts/immutable_ledger/cddl/hash.cddl
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,5 @@ | ||
hash-bytes = ( | ||
#6.32781(bytes) / ; Blake3 hash | ||
#6.32782(bytes) / ; Blake2b hash | ||
#6.32783(bytes) ; Blake2s hash | ||
) |
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