b196f6b897 hashes: fix typos (Thabokani)
80665671cd bitcoin: fix typos (Thabokani)

Pull request description:

  bitcoin: fix typos
  hashes: fix typos

ACKs for top commit:
  Kixunil:
    ACK b196f6b897
  apoelstra:
    ACK b196f6b897

Tree-SHA512: 702e03a08f9500adf0ee7b7e565eeceba170691cb0ca281d8ff3ba904e857bb305c2504c48aa72a60a635508c31f98e379e31bbd5ad9685b1c241d86846ae074
This commit is contained in:
Andrew Poelstra 2024-01-18 16:00:47 +00:00
commit 9eec1082ec
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ use bitcoin::secp256k1;
use bitcoin::secp256k1::rand::Rng; use bitcoin::secp256k1::rand::Rng;
fn main() { fn main() {
// This example establishes a connection to a Bitcoin node, sends the intial // This example establishes a connection to a Bitcoin node, sends the initial
// "version" message, waits for the reply, and finally closes the connection. // "version" message, waits for the reply, and finally closes the connection.
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();
if args.len() < 2 { if args.len() < 2 {

View File

@ -348,7 +348,7 @@ impl_consensus_encoding!(BlockTransactions, block_hash, transactions);
impl BlockTransactions { impl BlockTransactions {
/// Construct a [BlockTransactions] from a [BlockTransactionsRequest] and /// Construct a [BlockTransactions] from a [BlockTransactionsRequest] and
/// the corresponsing full [Block] by providing all requested transactions. /// the corresponding full [Block] by providing all requested transactions.
pub fn from_request( pub fn from_request(
request: &BlockTransactionsRequest, request: &BlockTransactionsRequest,
block: &Block, block: &Block,

View File

@ -58,7 +58,7 @@ pub enum Error {
NonStandardSighashType(u32), NonStandardSighashType(u32),
/// Invalid hash when parsing slice. /// Invalid hash when parsing slice.
InvalidHash(hashes::FromSliceError), InvalidHash(hashes::FromSliceError),
/// The pre-image must hash to the correponding psbt hash /// The pre-image must hash to the corresponding psbt hash
InvalidPreimageHashPair { InvalidPreimageHashPair {
/// Hash-type /// Hash-type
hash_type: PsbtHash, hash_type: PsbtHash,

View File

@ -223,7 +223,7 @@ mod into_iter {
#[inline] #[inline]
fn nth(&mut self, n: usize) -> Option<Self::Item> { fn nth(&mut self, n: usize) -> Option<Self::Item> {
if n >= self.len() { if n >= self.len() {
// upholds invariant becasue the values will be equal // upholds invariant because the values will be equal
self.pos = self.signature.len(); self.pos = self.signature.len();
None None
} else { } else {

View File

@ -44,7 +44,7 @@ pub struct HmacMidState<T: Hash> {
pub outer: <T::Engine as HashEngine>::MidState, pub outer: <T::Engine as HashEngine>::MidState,
} }
/// Pair of underyling hash engines, used for the inner and outer hash of HMAC. /// Pair of underlying hash engines, used for the inner and outer hash of HMAC.
#[derive(Clone)] #[derive(Clone)]
pub struct HmacEngine<T: Hash> { pub struct HmacEngine<T: Hash> {
iengine: T::Engine, iengine: T::Engine,