Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 552 Bytes

File metadata and controls

20 lines (15 loc) · 552 Bytes

CDDL spec

The current binary format is specified in byron.cddl. You can use this to generate (pseudo-)valid blocks:

nix-shell
cddl byron.cddl generate | diag2pretty.rb > test.pretty

By default these are produced in CBOR Diagnostic notation, so you can use diag2pretty.rb or diag2cbor.rb to convert them to a pretty-printed or binary encoded CBOR format respectively.

The CDDL tools may also be used to validate existing blocks:

cddl byron.cddl validate test.block