forked from ordinals/ord
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove data hash from Metadata, since Nft already includes the data, and the data hash can be calculated from that. - Move public key from Metadata to Nft, since Nft already includes the signature, that commits to the public key. - Encode Nft::metadata as a Vec<u8> containing CBOR, so we don't do an decode/encode round trip that might produce different bytes, and thus invalidate the signature.
- Loading branch information
Showing
2 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters