Trait ink_env::hash::CryptoHash
source · pub trait CryptoHash: HashOutput + Sealed {
// Required method
fn hash(input: &[u8], output: &mut <Self as HashOutput>::Type);
}
Expand description
Types that are usable as built-in cryptographic hashes.
Required Methods§
sourcefn hash(input: &[u8], output: &mut <Self as HashOutput>::Type)
fn hash(input: &[u8], output: &mut <Self as HashOutput>::Type)
Hashes the given raw byte input and copies the result into output
.
Object Safety§
This trait is not object safe.