Merge rust-bitcoin/rust-bitcoin#2734: fix(typo): examples/ecdsa-psbt.rs

f0093c0f1c fix(typo): examples/ecdsa-psbt.rs (Jose Storopoli)

Pull request description:

  "Creater" is a typo, it should be "Creator" role.

  Ref: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki?plain=1#L660

ACKs for top commit:
  tcharding:
    ACK f0093c0f1c
  apoelstra:
    ACK f0093c0f1c

Tree-SHA512: ccdae4979da2044b4fdf3a0522e5cb6d64b394baadb6107d5e58096d2741458085c6ef349924bc0aa64eca69b89e394eb16fbf890c86716608ee06d287828ff2
This commit is contained in:
Andrew Poelstra 2024-05-02 12:35:19 +00:00
commit 587b4fee47
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ impl WatchOnly {
WatchOnly { account_0_xpub, input_xpub, master_fingerprint }
}
/// Creates the PSBT, in BIP174 parlance this is the 'Creater'.
/// Creates the PSBT, in BIP174 parlance this is the 'Creator'.
fn create_psbt<C: Verification>(&self, secp: &Secp256k1<C>) -> Result<Psbt> {
let to_address = Address::from_str(RECEIVE_ADDRESS)?.require_network(Network::Regtest)?;
let to_amount = Amount::from_str(OUTPUT_AMOUNT_BTC)?;