The current binary format is specified in cole.cddl
. You can use this
to generate (pseudo-)valid blocks:
nix-shell
cddl cole.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 cole.cddl validate test.block