Type Alias alloy_primitives::aliases::B256

source ·
pub type B256 = FixedBytes<32>;
Expand description

32-byte fixed byte-array type.

Aliased Type§

struct B256(pub [u8; 32]);

Fields§

§0: [u8; 32]

Trait Implementations§

source§

impl From<Signed<256, 4>> for B256

source§

fn from(value: I256) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

source§

impl From<Uint<256, 4>> for B256

source§

fn from(value: U256) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.