pub(crate) fn compute_address_checksum(key_bytes: &[u8]) -> [u8; 5] {
    let mut hasher = VarBlake2b::new(5).unwrap();
	let mut buf = [0u8; 5];
	hasher.update(key_bytes);
    hasher.finalize_variable(|res| buf.copy_from_slice(res));
	buf.reverse();
	buf
}
// the address checksum is the 5 byte hash of the public key reversed
the address checksum is the 5 byte hash of the public key reversed
the address checksum is the 5 byte hash of the public key reversed
pub(crate) fn compute_address_checksum(key_bytes: &[u8]) -> [u8; 5] {
    let mut hasher = VarBlake2b::new(5).unwrap();
	let mut buf = [0u8; 5];
	hasher.update(key_bytes);
    hasher.finalize_variable(|res| buf.copy_from_slice(res));
	buf.reverse();
	buf
}
pub ( crate ) fn compute_address_checksum ( key_bytes : & [ u8 ] ) -> [ u8 ; 5 ] { let mut hasher = VarBlake2b :: new ( 5 ) . unwrap ( ) ; let mut buf = [ 0u8 ; 5 ] ; hasher . update ( key_bytes ) ; hasher . finalize_variable ( | res | buf . copy_from_slice ( res ) ) ; buf . reverse ( ) ; buf }
the address checksum is the 5 byte hash of the public key reversed
the address checksum is the 5 byte hash of the public key reversed
key_bytes
&[u8]
key_bytes
&[u8]