Skip to content

Latest commit

 

History

History
 
 

cddl-spec

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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