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

Remove data_hash from metadata and make metadata a Vec<u8> #221

Merged
merged 5 commits into from
Jun 27, 2022

Conversation

alok
Copy link
Contributor

@alok alok commented Jun 27, 2022

  1. Nft has that information (implicitly, since it can be derived from nft.data).
  2. vec u8 ensures hash stability

alok added 5 commits June 26, 2022 19:10
Nft has that information (implicitly, since it can be derived from nft.data).
We do this to avoid relying on a particular CBOR encoding of the metadata, since it needs to have a stable hash value.
@casey casey enabled auto-merge (squash) June 27, 2022 03:10
@casey casey merged commit e785c0b into ordinals:master Jun 27, 2022
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.

None yet

2 participants