Function: ballotAnchorDigest()
function ballotAnchorDigest(ballot: Ballot): string | null;
Defined in: vote-core/src/anchor.ts:47 (opens in a new tab)
anchor_digest (SPEC §7.4): the SHA-256 of the ballot's canonical bytes with
its signature in canonical text, so every base64 text of one signature has
one digest. Null when sig.value does not decode. Compute it only for a copy
whose signature verified: a stamp over any other copy anchors nothing.
ParametersLink to this section
| Parameter | Type |
|---|---|
ballot | Ballot |
ReturnsLink to this section
string | null