pub fn blake2b<T: AsRef<[u8]>>(input: T) -> [u8; BLAKE2B_DIGEST_LENGTH] {
    let mut ret = [0; BLAKE2B_DIGEST_LENGTH];
    let result = unsafe {
        ext_ffi::casper_blake2b(
            input.as_ref().as_ptr(),
            input.as_ref().len(),
            ret.as_mut_ptr(),
            BLAKE2B_DIGEST_LENGTH,
        )
    };
    api_error::result_from(result).unwrap_or_revert();
    ret
}
/// Returns a 32-byte BLAKE2b digest
Returns a 32-byte BLAKE2b digest
Returns a 32 - byte BLAKE2b digest
pub fn blake2b<T: AsRef<[u8]>>(input: T) -> [u8; BLAKE2B_DIGEST_LENGTH] {
    let mut ret = [0; BLAKE2B_DIGEST_LENGTH];
    let result = unsafe {
        ext_ffi::casper_blake2b(
            input.as_ref().as_ptr(),
            input.as_ref().len(),
            ret.as_mut_ptr(),
            BLAKE2B_DIGEST_LENGTH,
        )
    };
    api_error::result_from(result).unwrap_or_revert();
    ret
}
pub fn blake2b < T : AsRef < [ u8 ] > > ( input : T ) -> [ u8 ; BLAKE2B_DIGEST_LENGTH ] { let mut ret = [ 0 ; BLAKE2B_DIGEST_LENGTH ] ; let result = unsafe { ext_ffi :: casper_blake2b ( input . as_ref ( ) . as_ptr ( ) , input . as_ref ( ) . len ( ) , ret . as_mut_ptr ( ) , BLAKE2B_DIGEST_LENGTH , ) } ; api_error :: result_from ( result ) . unwrap_or_revert ( ) ; ret }
Returns a 32-byte BLAKE2b digest
Returns a 32 - byte BLAKE2b digest
input
T
input
T