Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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