pub fn rmp_hash<T: Serialize>(
value: &T,
nonce: u64,
vault_address: Option<Address>,
expires_after: Option<u64>,
) -> Result<B256, Error>Expand description
Compute the MessagePack hash of a value for signing.
Serializes to named MessagePack, appends nonce, optional vault address (1-byte tag + 20 bytes) and optional expiry (1-byte tag + 8 bytes), then returns keccak256 of the concatenation.