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

@orangecheck/pledge-core


@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

ParameterType
input&#123; resolved_by: string; &#125;
input.resolved_bystring

Returns

boolean