Skip to content
On this page

Interface: CreateDelegatedPledgeInput

Defined in: pledge-core/src/types.ts:256 (opens in a new tab)

An agent signs under an OC Agent delegation (SPEC §7.3). The swearer is swearer, an address; nothing the principal holds is needed. via_delegation (the delegation id) and agent_address (the agent's address) appear in the envelope but are NOT in the canonical message.

ExtendsLink to this section

PropertiesLink to this section

PropertyTypeDescriptionDefined in
bondPledgeBondInherited from PledgeCanonicalInput.bondpledge-core/src/types.ts:191 (opens in a new tab)
counterpartystring | nullInherited from PledgeCanonicalInput.counterpartypledge-core/src/types.ts:192 (opens in a new tab)
disputePledgeDisputeInherited from PledgeCanonicalInput.disputepledge-core/src/types.ts:193 (opens in a new tab)
expires_atstringInherited from PledgeCanonicalInput.expires_atpledge-core/src/types.ts:190 (opens in a new tab)
nonce?string32 lowercase hex chars (16 random bytes). If omitted, a fresh random nonce is generated via crypto.getRandomValues. Pass an explicit value for test-vector reproduction.Inherited from CreatePledgeTerms.noncepledge-core/src/types.ts:239 (opens in a new tab)
propositionstringInherited from PledgeCanonicalInput.propositionpledge-core/src/types.ts:187 (opens in a new tab)
remediation?"breach_recorded"Defaults to "breach_recorded" (the only legal value in v0.1).Inherited from CreatePledgeTerms.remediationpledge-core/src/types.ts:241 (opens in a new tab)
resolutionPledgeResolutionInherited from PledgeCanonicalInput.resolutionpledge-core/src/types.ts:188 (opens in a new tab)
resolves_atPledgeResolvesAtInherited from PledgeCanonicalInput.resolves_atpledge-core/src/types.ts:189 (opens in a new tab)
swearerstringInherited from PledgeCanonicalInput.swearerpledge-core/src/types.ts:186 (opens in a new tab)
swearerSigner?Bip322SignerDeprecated Not read on this path beyond its address, which must equal swearer. Leave it out.Inherited from -pledge-core/src/types.ts:262 (opens in a new tab)
swornAt?string | DateDefaults to "now" (truncated to seconds, ISO 8601 UTC, Z-terminated).Inherited from CreateDirectPledgeInput.swornAtpledge-core/src/types.ts:233 (opens in a new tab)
viaDelegation{ agent_signer: Bip322Signer; delegation_id: string; }Inherited from -pledge-core/src/types.ts:257 (opens in a new tab)
viaDelegation.agent_signerBip322SignerInherited from -pledge-core/src/types.ts:257 (opens in a new tab)
viaDelegation.delegation_idstringInherited from -pledge-core/src/types.ts:257 (opens in a new tab)