/** * Audit M-7 (helper, NOT currently wired into any signing path). * * Each validator derives its signing key from `globalThis.validatorWalletAddress` and signs the * EIP-712 authorization the on-chain consumer verifies. The consumer pins the authorized validator * address in `OperationAuthorizationRegistry` (OAR), keyed by the operation's function selector, * and reverts any signature that does not recover to the registered pkpAddress. **That on-chain * OAR check is the authoritative, sufficient enforcement** — a signature from the wrong validator * wallet is rejected on-chain, so no state changes and no funds move. * * This module provides an optional in-action fail-fast convenience. It is intentionally NOT called * by any validator yet: `lit-ops-server` passes `contractAddresses.OperationAuthorizationRegistry`, * but no action imports or invokes the functions below. Note the limitation if it is ever wired in: * both `oarAddress` and `validatorWalletAddress` come from the same caller-supplied jsParams, so an * adversary who can tamper with one can tamper with both (point `oarAddress` at a contract that * returns their wallet). It therefore guards against an honest server MISCONFIGURATION, not against * a malicious caller — and it is not a substitute for the on-chain OAR check. * * `assertValidatorMatches` is the pure decision (unit-testable, no chain). `assertValidatorRegistered` * reads the OAR on-chain and delegates to it. Both fail closed. */ export interface RegisteredValidator { pkpAddress: string; active: boolean; } /** Pure assertion: throws unless `validatorWalletAddress` is the active registered validator. */ export declare function assertValidatorMatches(validatorWalletAddress: string, registered: RegisteredValidator, selectorForMsg?: string): void; /** * Read the OAR and assert the signing wallet is the active registered validator for `selector`. * @param validatorWalletAddress the wallet the action is about to sign with * @param selector bytes4 function selector the OAR entry is keyed by (the consumer's function) * @param oarAddress OperationAuthorizationRegistry address (from globalThis.contractAddresses) * @param provider ethers provider for the read */ export declare function assertValidatorRegistered(validatorWalletAddress: string, selector: string, oarAddress: string | undefined, provider: any): Promise; //# sourceMappingURL=validator-registry-check.module.d.ts.map