@orangecheck/pledge-core / VerifyPledgeInput
Interface: VerifyPledgeInput
Defined in: pledge-core/src/types.ts:276
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-delegationlookup"></a> delegationLookup? | DelegationLookup | Optional — when present AND envelope.via_delegation is set, verifyPledge runs SPEC §7.3 steps 1–5: resolve the delegation, confirm principal == swearer, agent == agent_address, expires_at > sworn_at, and that scopes contain a pledge:create(...) whose constraints fit the pledge's bond / mechanism / counterparty. Without this hook, agent-delegated pledges still verify at the envelope-shape + BIP-322 layer (§7.3 step 6), but the §7.3 1–5 chain is skipped. Surface a delegationLookup adapter (e.g. one that uses @orangecheck/agent-core's verifyDelegation) for full scope enforcement. | pledge-core/src/types.ts:295 |
<a id="property-envelope"></a> envelope | PledgeEnvelope | - | pledge-core/src/types.ts:277 |
<a id="property-skipsignatureverification"></a> skipSignatureVerification? | boolean | Default false. Set true to bypass BIP-322 entirely. | pledge-core/src/types.ts:281 |
<a id="property-verifybip322"></a> verifyBip322? | VerifyBip322 | Optional — omit to skip BIP-322 verification (e.g. for test vectors with placeholder sigs). | pledge-core/src/types.ts:279 |