ThresholdWitness
A policy that requires M-of-N witness signatures before a reveal is permitted.
Address: 0xa89638B084B77965B278dF45EA6b7037C55fEBD7
Parameters
The policy params encode:
(
address[] witnesses,
uint256 threshold,
bytes[] signatures
) = abi.decode(policyParams, (address[], uint256, bytes[]));
| Parameter | Description |
|---|---|
witnesses | Array of authorized witness addresses |
threshold | Minimum number of witness signatures required |
signatures | Array of EIP-712 signatures from witnesses |
Validation logic
- Verifies at least
thresholdvalid signatures are provided - Each signature must be from a unique witness in the
witnessesarray - Signatures are verified using
ecrecover
Use case
Multi-party approval for high-value reveals. Examples:
- Corporate treasury — 3-of-5 board member approval to reveal committed funds
- Multi-sig privacy — multiple keyholders must sign off on a privacy operation
- Compliance gates — require compliance officer approval before reveal