Expand description
Record schema v1: questions and ballots, signed as canonical JSON.
Structs§
- BadBallot
- A tracker ballot that does not stand.
- Ballot
Entry - A ballot entry.
- Check
Report - Summary of
ljos record check. - Entry
Signature - Signature material for one entry.
- Question
Entry - A question entry.
- Signed
Entry - One signed entry in the plain record layer.
- Tracker
Report - Summary of
ljos record check --tracker. - Unsigned
Entry - A record entry before signing.
Enums§
- Entry
- Entry kinds in schema v1.
Constants§
- SCHEMA_
V1 - The only accepted schema value for record entries.
Functions§
- ballot_
id - Ballot id from canonical ballot JSON without
id. - canonical_
json - Canonical JSON bytes: recursive key sort, no insignificant whitespace.
- check_
dir - Validate every
.jsonentry underdir. - check_
entries - Run schema + signature checks over many entries, including voter-key pinning.
- check_
tracker - Hold every ballot on the tracker at
rootto the push gate’s signature check (crate::ballot_sig::seat_check): the newestballot-sig:note of its voter names its choice, verifies, and is under the key.ljos-seat-keyspins for that voter and for no other seat or voter on the issue, so one key does not count as several voters. A persona’s or a judge’s ballot is held to it too, since every cast signs. An unsigned ballot the tracker held before its first pin, by commit order, is legacy, as at the push gate (crate::ballot_sig::recorded_before_signing_in). Only files are read, and git for that order. - format_
check_ report - Text form of a successful check.
- format_
tracker_ report - Text form of a tracker check: one
FILE:LINE: ISSUE: REASONline per ballot that does not stand, then the count. - sign_
entry - Sign one entry with
seat’s ballot key. - tally
- Latest unreplaced ballot per voter and question.
- verify_
entry - Verify a signed entry and its schema rules.