Rename Midstate::into_parts to Midstate::to_parts since it derives Copy

This commit is contained in:
Shing Him Ng 2024-09-30 08:13:16 -05:00
parent 10f19683cb
commit be94c9e54b
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ impl Midstate {
pub const fn as_parts(&self) -> (&[u8; 32], u64) { (&self.bytes, self.bytes_hashed) }
/// Deconstructs the [`Midstate`], returning the underlying byte array and number of bytes hashed.
pub const fn into_parts(self) -> ([u8; 32], u64) { (self.bytes, self.bytes_hashed) }
pub const fn to_parts(self) -> ([u8; 32], u64) { (self.bytes, self.bytes_hashed) }
/// Creates midstate for tagged hashes.
///