How would this policy be evaluated?
addresses
as an allowlist, only accepting sign transaction requests to an EVM address that is in
the set.
to
field set to any address outside of this list will be accepted.
addresses
as a denylist, rejecting any sign transaction to an address that is not in
the set.
What's the difference?
match
field, any valid re2 regular expression syntax will be accepted.
transfer
function calls with a value
parameter under the specified limit are permitted.
stakeTokens
function to:
"in"
operator with trusted contract addresses, or a denylist by using "not in"
with untrusted addresses.
evmTypedDataField
criterion to inspect the actual data being signed. The evmTypedDataField
criterion supports conditions on numerical values, addresses and strings.
Difference between evmTypedDataVerifyingContract and evmTypedDataField
evmTypedDataVerifyingContract
: Checks only the verifying contract address in the EIP-712 domain. This is simpler and useful for allowlisting/denylisting contracts.evmTypedDataField
: Allows inspection of the entire typed data structure including types and field values. This enables more complex validations like checking specific field values, ranges, or data types.transfer
function calls with a value
parameter under the specified limit are permitted.