cardano-js-sdk icon indicating copy to clipboard operation
cardano-js-sdk copied to clipboard

Sync CborTag with IANA

Open mofosyne opened this issue 1 year ago • 2 comments

Describe the feature you'd like

Created a code generator found in https://github.com/mofosyne/iana-headers/tree/main/cbor which would generate https://github.com/mofosyne/iana-headers/blob/main/c/src/cbor-constants.h

Considering if we can add this capability to this project as well. Code generator would of course need to be adapted to TypeScript.

https://github.com/input-output-hk/cardano-js-sdk/blob/88248ef21f11b3f38564b6cddd642c1c91aec66b/packages/core/src/Serialization/CBOR/CborTag.ts#L4-L14

Noticed that constant macros is not in all caps. Is this typical for typescript projects?

Describe alternatives you've considered

No response

Would you be willing to implement it?

  • [ ] Yes, I will implement it.

mofosyne avatar Sep 25 '23 00:09 mofosyne

Just additional info: actually this is true for minor releases (e.g. 7.0.x -> 7.1.0). Upgrade from 5.0 -> 6.0, ... , 8.0 -> 9.0 - so all major releases required a database drop.

ArturWieczorek avatar May 28 '21 12:05 ArturWieczorek