Rename Midstate::into_parts to Midstate::to_parts since it derives Copy
This commit is contained in:
parent
10f19683cb
commit
be94c9e54b
|
@ -198,7 +198,7 @@ impl Midstate {
|
||||||
pub const fn as_parts(&self) -> (&[u8; 32], u64) { (&self.bytes, self.bytes_hashed) }
|
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.
|
/// 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.
|
/// Creates midstate for tagged hashes.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue