-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Dbc::key_image() for checking if spent
Some changes to support mint-repl and general cleanup: * add KeyImage::to_bytes() * normalize key fn names to *_secret_key() and *_public_key() * add Dbc::key_image() fn, needed to check if spent * add Dbc::amount_secrets() convenience fn * add Dbc key getter convenience fns. * remove DbcContent::derive_owner() * add DbcContent::derivation_index() * add fns to get blst format keys from DerivedOwner * fix wrong assertion in SpentBookMock::log_spent() * simplify tests a bit using new key convenience fns.
- Loading branch information
Showing
7 changed files
with
162 additions
and
103 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
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
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
Oops, something went wrong.