ietf-rats / ietf-corim-cddl

This repository is abandoned. The adopted I-D can be found at:
https://github.com/ietf-rats-wg/draft-ietf-rats-corim/
2 stars 0 forks source link

pretty print CBOR when generating from diag #92

Closed thomas-fossati closed 3 years ago

thomas-fossati commented 3 years ago

Fixes #90

thomas-fossati commented 3 years ago

See, for example, the "assemble CoRIM cddl ..." block in https://github.com/ietf-rats/ietf-corim-cddl/pull/92/checks?check_run_id=3010782406

[...]
diag2cbor.rb examples/corim-unsigned-2.diag > examples/corim-unsigned-2.cbor
26 cbor2pretty.rb examples/corim-unsigned-2.cbor
27 d9 b806                                # tag(47110)
28   d9 b807                              # tag(47111)
29      a2                                # map(2)
30         00                             # unsigned(0)
31         50                             # bytes(16)
32            284e6c3e5d9f4f6b851f5a4247f243a7 # "(Nl>]\x9FOk\x85\x1FZBG\xF2C\xA7"
33         01                             # unsigned(1)
34         d9 b80d                        # tag(47117)
35            59 01c8                     # bytes(456)
[...]