common_primitives::node

Trait EIP712Encode

Source
pub trait EIP712Encode {
    // Required method
    fn encode_eip_712(&self) -> Box<[u8]>;
}
Expand description

Trait that must be implemented to be able to encode the payload to eip-712 compatible signatures

Required Methods§

Source

fn encode_eip_712(&self) -> Box<[u8]>

encodes the type without hashing it

Implementors§

Source§

impl<BlockNumber> EIP712Encode for ClaimHandlePayload<BlockNumber>
where BlockNumber: Into<U256> + TryFrom<U256> + Copy,