Skip to main content

compute_action_hash

Function compute_action_hash 

Source
pub fn compute_action_hash(
    ctx: &ActionContext,
    module_data_hash: B256,
    action_typehash: B256,
) -> B256
Expand description

Computes the EIP-712 action hash for a Derive self-custodial action.

module_data_hash must be keccak256(module_data.to_abi_encoded()) from the per-module encoder; see crate::signing::modules.