Skip to content

feat(CIP68): conversion of additional/unknown string props to UTF8#60

Draft
slowbackspace wants to merge 2 commits intomasterfrom
cip68/unknown-props
Draft

feat(CIP68): conversion of additional/unknown string props to UTF8#60
slowbackspace wants to merge 2 commits intomasterfrom
cip68/unknown-props

Conversation

@slowbackspace
Copy link
Contributor

@slowbackspace slowbackspace commented Apr 4, 2024

resolves #59

Adds conversion of additional/unknown top-level string metadata props to UTF8.

Note that this change affect only top-level prop (see added test fixture) and and all primitive data types except strings will continue to be encoded in CBOR hexadecimal format (CIP68 talks only about converting string entries). However maybe we should convert all primitive values (such as numbers, booleans, null) found within additional/unknown props.

  • DECISION NEEDED

Implemented as non-breaking change in the lib. New behaviour can be enabled by passing an option param convertAdditionalPropsToUTF8: true to getMetadataFromOutputDatum fn. However, once it is enabled on Blockfrost backends it will be a breaking change. To prevent chaos we probably want to introduce this change in a new metadata endpoint.

@slowbackspace slowbackspace changed the title feat(CIP68): conversion of unknown string props feat(CIP68): conversion of additional/unknown string props to UTF8 Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Try to decode CBOR-encoded properties in CIP-0068 metadata

1 participant