Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

assert_valid_signature

Validates a signature using SRC6 is_valid_signature and asserts it’s valid. Checks both ‘VALID’ (starknet::VALIDATED) and true (1) for backwards compatibility.

Fully qualified path: openzeppelin_utils::execution::assert_valid_signature

pub fn assert_valid_signature(
    signer: ContractAddress,
    hash: felt252,
    signature: Span<felt252>,
    invalid_signature_error: felt252,
)