struct_hash
Compute TxSeismic EIP-712 struct hash
Signature
def struct_hash(tx: UnsignedSeismicTx) -> bytesParameters
Parameter
Type
Required
Description
Returns
Type
Description
How it works
keccak256(
TX_SEISMIC_TYPE_HASH
‖ encode(chain_id)
‖ encode(nonce)
‖ encode(gas_price)
‖ encode(gas)
‖ encode(to)
‖ encode(value)
‖ keccak256(data) // dynamic type
‖ keccak256(encryption_pubkey) // dynamic type
‖ encode(encryption_nonce)
‖ encode(message_version)
‖ recent_block_hash // already 32 bytes
‖ encode(expires_at_block)
‖ encode(signed_read)
)Encoding details
See Also
Last updated

