@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. An agent-delegated pledge is refused with E_DELEGATION_NOT_FOUND when this hook is absent, unless skipDelegationVerification says so explicitly: the signature alone proves only that the agent signed, not that the swearer authorised it (SPEC §7.3). | pledge-core/src/types.ts:294 |
<a id="property-envelope"></a> envelope | PledgeEnvelope | - | pledge-core/src/types.ts:277 |
<a id="property-skipdelegationverification"></a> skipDelegationVerification? | boolean | Verify an agent-delegated pledge WITHOUT resolving its delegation. Only for callers that check the §7.3 chain themselves or that present the result as unauthorised (test vectors, offline previews). | pledge-core/src/types.ts:300 |
<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 |