oc · docs
docs / documentation

@orangecheck/vote-core


@orangecheck/vote-core / verifyBallot

Function: verifyBallot()

function verifyBallot(ballot: Ballot, verify: SignatureVerifier): Promise<VerifyResult>;

Defined in: vote-core/src/verify.ts:95

Structural checks from SPEC §4.3 plus the voter's BIP-322 signature over ballot_id (§10.1), for a ballot read on its own, without its poll. Whether the option belongs to the poll, and whether the ballot is in time, are questions for tally, which has the poll.

Parameters

ParameterType
ballotBallot
verifySignatureVerifier

Returns

Promise&lt;VerifyResult>