forked from lightninglabs/taproot-assets
-
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.
asset: update DeepEqual to work with asset v1 (segwit)
The asset version v1 (segwit) allows an asset to be committed without the TxWitness field. Therefore, when comparing two such assets, we must also ignore the TxWitness field. If we don't do this, then the deep equal check when creating a proof for a split asset fails when checking if the split root asset was committed to the root tree.
- Loading branch information
Showing
2 changed files
with
36 additions
and
6 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