589dd025df units: fix typo (calciumbe)
a6a746b8c0 hashes: fix typo (calciumbe)
9a5970dbfe chacha20_poly1305: fix typo (calciumbe)
bcf8580913 bitcoin: fix typo (calciumbe)
bfac237287 base58: fix typo (calciumbe)

Pull request description:

  base58: fix typo
  bitcoin: fix typo
  chacha20_poly1305: fix typo
  hashes: fix typo
  units: fix typo

ACKs for top commit:
  storopoli:
    ACK 589dd025df
  tcharding:
    ACK 589dd025df
  apoelstra:
    ACK 589dd025df938da3efac277511836cda5c53aa06; successfully ran local tests; thanks!

Tree-SHA512: 8f7cb0b4daaaa1f71a5ef0a7e45ed6d62fb08a5a5a3ddceeab1844469dc017c40a74054bb4d4c98c130c4c733e6779f8e447a8395ed1f58c5763eb0d524180a1
This commit is contained in:
merge-script 2024-12-24 13:35:21 +00:00
commit 3a42bc41ee
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
5 changed files with 7 additions and 7 deletions

View File

@ -337,7 +337,7 @@ mod benches {
#[bench] #[bench]
pub fn bench_encode_check_xpub(bh: &mut Bencher) { pub fn bench_encode_check_xpub(bh: &mut Bencher) {
let data: alloc::vec::Vec<_> = (0u8..78).collect(); // lenght of xpub let data: alloc::vec::Vec<_> = (0u8..78).collect(); // length of xpub
bh.iter(|| { bh.iter(|| {
let r = super::encode_check(&data); let r = super::encode_check(&data);

View File

@ -41,7 +41,7 @@ impl_hashencode!(WitnessMerkleNode);
/// Other Merkle trees in Bitcoin, such as those used in Taproot commitments, /// Other Merkle trees in Bitcoin, such as those used in Taproot commitments,
/// do not use this algorithm and cannot use this trait. /// do not use this algorithm and cannot use this trait.
pub trait MerkleNode: Copy { pub trait MerkleNode: Copy {
/// The hash (TXID or WTXID) of a transaciton in the tree. /// The hash (TXID or WTXID) of a transaction in the tree.
type Leaf: TxIdentifier; type Leaf: TxIdentifier;
/// Convert a hash to a leaf node of the tree. /// Convert a hash to a leaf node of the tree.

View File

@ -45,7 +45,7 @@ impl Nonce {
/// ///
/// This type is attempting to be as close as possible to the experimental [`core::simd::u32x4`] /// This type is attempting to be as close as possible to the experimental [`core::simd::u32x4`]
/// which at this time is feature gated and well beyond the project's MSRV. But ideally /// which at this time is feature gated and well beyond the project's MSRV. But ideally
/// an easy transistion can be made in the future. /// an easy transition can be made in the future.
/// ///
/// A few SIMD relevant design choices: /// A few SIMD relevant design choices:
/// * Heavy use of inline functions to help the compiler recognize vectorizable sections. /// * Heavy use of inline functions to help the compiler recognize vectorizable sections.

View File

@ -6,7 +6,7 @@
# 0.15.0 - 2024-10-16 # 0.15.0 - 2024-10-16
This release is massive. The biggest visable changes are to the `Hash` trait, which has mostly been replaced This release is massive. The biggest visible changes are to the `Hash` trait, which has mostly been replaced
by inherent functions. You should not need to import it at all anymore for normal usage. Check out how we are by inherent functions. You should not need to import it at all anymore for normal usage. Check out how we are
using `hashes` in `rust-bitcoin` to see an example. Enjoy! using `hashes` in `rust-bitcoin` to see an example. Enjoy!
@ -52,7 +52,7 @@ using `hashes` in `rust-bitcoin` to see an example. Enjoy!
* Bump MSRV to Rust version 1.56.1 [#2188](https://github.com/rust-bitcoin/rust-bitcoin/pull/2188) * Bump MSRV to Rust version 1.56.1 [#2188](https://github.com/rust-bitcoin/rust-bitcoin/pull/2188)
## API improvemnts ## API improvements
* Add support for SHA384 [#2538](https://github.com/rust-bitcoin/rust-bitcoin/pull/2538) * Add support for SHA384 [#2538](https://github.com/rust-bitcoin/rust-bitcoin/pull/2538)
* Make from_hex inherent for byte-like types [#2491](https://github.com/rust-bitcoin/rust-bitcoin/pull/2491) * Make from_hex inherent for byte-like types [#2491](https://github.com/rust-bitcoin/rust-bitcoin/pull/2491)

View File

@ -121,7 +121,7 @@ impl FeeRate {
/// Checked addition. /// Checked addition.
/// ///
/// Computes `self + rhs` returning [`None`] if overflow occured. /// Computes `self + rhs` returning [`None`] if overflow occurred.
#[must_use] #[must_use]
pub const fn checked_add(self, rhs: u64) -> Option<Self> { pub const fn checked_add(self, rhs: u64) -> Option<Self> {
// No `map()` in const context. // No `map()` in const context.
@ -133,7 +133,7 @@ impl FeeRate {
/// Checked subtraction. /// Checked subtraction.
/// ///
/// Computes `self - rhs` returning [`None`] if overflow occured. /// Computes `self - rhs` returning [`None`] if overflow occurred.
#[must_use] #[must_use]
pub const fn checked_sub(self, rhs: u64) -> Option<Self> { pub const fn checked_sub(self, rhs: u64) -> Option<Self> {
// No `map()` in const context. // No `map()` in const context.