The current binary format is specified in byron.cddl. You can use this
to generate (pseudo-)valid blocks:
nix develop
cddl byron.cddl generate | diag2pretty.rb > test.prettyBy 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