DestinationRestriction
A policy that restricts reveals to specific recipient addresses.
Address: 0x899E9fa69F092D4B30FC7d4A3896366159A3ee00
Parameters
The policy params encode an allowed recipient address:
(address allowedRecipient) = abi.decode(policyParams, (address));
Validation logic
require(recipient == allowedRecipient);
The reveal will only succeed if the recipient public input in the proof matches the allowedRecipient in the policy params.
Use case
Bind committed tokens to a specific withdrawal address. Useful for:
- Escrow — commit tokens that can only be revealed to a designated party
- Payroll — commit salary tokens that only the employee can reveal
- Grant distribution — commit grant funds restricted to the grantee
Example
const policy = '0x899E9fa69F092D4B30FC7d4A3896366159A3ee00';
const policyParams = ethers.AbiCoder.defaultAbiCoder().encode(
['address'],
[recipientAddress]
);