From f7c28ab44d0817f55679c5af4a01c8ad3e5aad1f Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:03:03 +0200 Subject: [PATCH 1/4] Update input_string.rs --- internals/src/error/input_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internals/src/error/input_string.rs b/internals/src/error/input_string.rs index 817d20e43..b544c7345 100644 --- a/internals/src/error/input_string.rs +++ b/internals/src/error/input_string.rs @@ -95,7 +95,7 @@ impl_from!(&str); /// /// This is created by `display_cannot_parse` method and should be used as /// `write_err!("{}", self.input.display_cannot_parse("what is parsed"); self.source)` in parse -/// error [`Display`](fmt::Display) imlementation if the error has source. If the error doesn't +/// error [`Display`](fmt::Display) implementation if the error has source. If the error doesn't /// have a source just use regular `write!` with same formatting arguments. pub struct CannotParse<'a, T: fmt::Display + ?Sized> { input: &'a InputString, From 0e70e85a1a71b5df30e7bbf044f1fa0a4c758c65 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:03:35 +0200 Subject: [PATCH 2/4] Update key.rs --- bitcoin/src/crypto/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs index 1b3c3a484..1fd74b1a5 100644 --- a/bitcoin/src/crypto/key.rs +++ b/bitcoin/src/crypto/key.rs @@ -324,7 +324,7 @@ impl CompressedPublicKey { /// Serializes the public key. /// - /// As the type name suggests, the key is serialzied in compressed format. + /// As the type name suggests, the key is serialized in compressed format. /// /// Note that this can be used as a sort key to get BIP67-compliant sorting. /// That's why this type doesn't have the `to_sort_key` method - it would duplicate this one. From fc4ea874298e8a350fa1c29eecd9109c76f24869 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:10:23 +0200 Subject: [PATCH 3/4] Update transaction.rs --- bitcoin/src/blockdata/transaction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 0979171ff..9a3707d5d 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -999,7 +999,7 @@ impl InputWeightPrediction { /// /// # Panics /// - /// The funcion panics in const context and debug builds if `bytes_to_grind` is higher than 62. + /// The function panics in const context and debug builds if `bytes_to_grind` is higher than 62. /// /// [signature grinding]: https://bitcoin.stackexchange.com/questions/111660/what-is-signature-grinding pub const fn ground_p2wpkh(bytes_to_grind: usize) -> Self { @@ -1019,7 +1019,7 @@ impl InputWeightPrediction { /// /// # Panics /// - /// The funcion panics in const context and debug builds if `bytes_to_grind` is higher than 62. + /// The function panics in const context and debug builds if `bytes_to_grind` is higher than 62. /// /// [nested P2WPKH]: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#p2wpkh-nested-in-bip16-p2sh /// [signature grinding]: https://bitcoin.stackexchange.com/questions/111660/what-is-signature-grinding @@ -1040,7 +1040,7 @@ impl InputWeightPrediction { /// /// # Panics /// - /// The funcion panics in const context and debug builds if `bytes_to_grind` is higher than 62. + /// The function panics in const context and debug builds if `bytes_to_grind` is higher than 62. /// /// [signature grinding]: https://bitcoin.stackexchange.com/questions/111660/what-is-signature-grinding pub const fn ground_p2pkh_compressed(bytes_to_grind: usize) -> Self { From 83bd83385e0bbad993f96f5abbe51f71d199aad1 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:10:51 +0200 Subject: [PATCH 4/4] Update sighash.rs --- bitcoin/examples/sighash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/examples/sighash.rs b/bitcoin/examples/sighash.rs index 4f1f4d441..bc29bbda7 100644 --- a/bitcoin/examples/sighash.rs +++ b/bitcoin/examples/sighash.rs @@ -155,7 +155,7 @@ fn sighash_p2wpkh() { } fn sighash_p2sh_multisig_2x2() { - //Spending transactoin: + //Spending transaction: //bitcoin-cli getrawtransaction 214646c4b563cd8c788754ec94468ab71602f5ed07d5e976a2b0e41a413bcc0e 3 //after decoding ScriptSig from the input:0, its last ASM element is the scriptpubkey: //bitcoin-cli decodescript 5221032d7306898e980c66aefdfb6b377eaf71597c449bf9ce741a3380c5646354f6de2103e8c742e1f283ef810c1cd0c8875e5c2998a05fc5b23c30160d3d33add7af565752ae