-
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.
fix: verify Tx in DbcBuilder::build()
Previously DbcBuilder::build() was only doing some incomplete validations. This commit verifies the Tx which also requires that DbcBuilder::build() accept a KeyManager param, which has mintnode/spentbooknode trust implications/requirements that are now documented. * doc: add doc comment for TransactionVerifier::verify() and ::verify_without_sigs() * rename mint_verifier param to verifier * doc: add doc comment for Dbc::verify() * optimization: iter/collect() mint sigs once per tx, not per Dbc * add KeyManager arg to DbcBuilder::build() * call TransactionVerifier::verify() within DbcBuilder::build() * adapt tests, examples, benches to pass key_manager into ::build()
- Loading branch information
Showing
6 changed files
with
98 additions
and
44 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
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