Smart Account Reference
Signatures
checkSignatures

checkSignatures

Checks whether the signature provided is valid for the provided data and hash. Reverts otherwise.

Usage


_15
interface ISafe {
_15
function checkSignatures(
_15
bytes32 dataHash,
_15
bytes signatures
_15
) external view;
_15
}
_15
_15
contract Example {
_15
function example() ... {
_15
(ISafe safe).checkSignatures(
_15
"0x...",
_15
"0x..."
_15
);
_15
}
_15
}

Parameters

dataHash

  • Type: bytes32

Hash of the data (could be either a message hash or transaction hash).


_10
(ISafe safe).checkSignatures(
_10
"0x...",
_10
"0x..."
_10
);

signatures

  • Type: bytes

Signature data that should be verified. Can be packed ECDSA signature ((bytes32 r)(bytes32 s)(uint8 v)), contract signature (EIP-1271), or approved hash.


_10
(ISafe safe).checkSignatures(
_10
"0x...",
_10
"0x..."
_10
);

Was this page helpful?