live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / VerifyPledgeInput

Interface: VerifyPledgeInput

Defined in: pledge-core/src/types.ts:276

Properties

PropertyTypeDescriptionDefined in
<a id="property-delegationlookup"></a> delegationLookup?DelegationLookupOptional — 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> envelopePledgeEnvelope-pledge-core/src/types.ts:277
<a id="property-skipsignatureverification"></a> skipSignatureVerification?booleanDefault false. Set true to bypass BIP-322 entirely.pledge-core/src/types.ts:281
<a id="property-verifybip322"></a> verifyBip322?VerifyBip322Optional — omit to skip BIP-322 verification (e.g. for test vectors with placeholder sigs).pledge-core/src/types.ts:279