Skip to content

Files

Latest commit

9fda3d2 · Jul 7, 2020

History

History

specs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 7, 2020
Feb 14, 2020
Feb 14, 2020

Generating CDDL instances

First you need to install cddl

sudo apt install ruby
sudo gem install cddl
sudo gem install cbor-diag

You can generate new tests with

  1. cddl specs/shelley.cddl generate 1 > test/name_here.diag
  2. diag2cbor.rb test/name_here.diag > test/name_here.cbor

You can combine these together with cddl specs/shelley.cddl generate 1 | diag2cbor.rb > test/name_here.cbor