-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #730: docs: fix new clippy lint about excessively long initial …
…line 05dace0 docs: fix new clippy lint about excessively long initial line (Andrew Poelstra) Pull request description: Also does a few miscellaneous fixes that I noticed while fixing the lint. ACKs for top commit: tcharding: ACK 05dace0 sanket1729: ACK 05dace0 Tree-SHA512: d01fa4da51da2042a4f480096ca316b0d2a49955809f471779b060e9da00eac7051d49c3fb64c42b0791cb778a1cc01558e9f373c5020b8efccb88cb9c046884
- Loading branch information
Showing
8 changed files
with
55 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Written in 2020 by Sanket Kanjalkar <[email protected]> | ||
// SPDX-License-Identifier: CC0-1.0 | ||
|
||
//! # Partially-Signed Bitcoin Transactions | ||
//! Partially-Signed Bitcoin Transactions | ||
//! | ||
//! This module implements the Finalizer and Extractor roles defined in | ||
//! BIP 174, PSBT, described at | ||
|
@@ -298,7 +298,8 @@ fn get_descriptor(psbt: &Psbt, index: usize) -> Result<Descriptor<PublicKey>, In | |
} | ||
|
||
/// Interprets all psbt inputs and checks whether the | ||
/// script is correctly interpreted according to the context | ||
/// script is correctly interpreted according to the context. | ||
/// | ||
/// The psbt must have included final script sig and final witness. | ||
/// In other words, this checks whether the finalized psbt interprets | ||
/// correctly | ||
|
@@ -351,7 +352,9 @@ fn interpreter_inp_check<C: secp256k1::Verification, T: Borrow<TxOut>>( | |
Ok(()) | ||
} | ||
|
||
/// Finalize the psbt. This function takes in a mutable reference to psbt | ||
/// Finalize the psbt. | ||
/// | ||
/// This function takes in a mutable reference to psbt | ||
/// and populates the final_witness and final_scriptsig | ||
/// of the psbt assuming all of the inputs are miniscript as per BIP174. | ||
/// If any of the inputs is not miniscript, this returns a parsing error | ||
|
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