@orangecheck/pledge-core / outcomeRequiresSignature
Function: outcomeRequiresSignature()
function outcomeRequiresSignature(input: {
resolved_by: string;
}): boolean;
Defined in: pledge-core/src/outcome.ts:36
SPEC §4.3 — does this outcome envelope require a BIP-322 signature?
Discriminator is resolved_by, not mechanism. The five deterministic
mechanisms always have resolved_by="deterministic" and sig=null.
counterparty_signs normally has resolved_by=<counterparty.address> and a
signature — UNLESS the outcome is expired_unresolved, in which case the
verifier deterministically classifies the deadline passing without a
counterparty signature, so resolved_by="deterministic" and sig=null
(test vector v16 pins this nuance).
Parameters
| Parameter | Type |
|---|---|
input | { resolved_by: string; } |
input.resolved_by | string |
Returns
boolean