Function bytes32_to_address

Source
pub fn bytes32_to_address(bytes: &[u8; 32]) -> [u8; 20]
Expand description

Convert a [u8; 32] to a [u8; 20]

§Arguments

  • bytes - The [u8; 32] to convert

§Returns

Returns a [u8; 20] with the address