Skip to content

Releases

gaussia-match v0.9.2

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:37
  • Fixed: a result file with a duplicate object key was hashed using whichever value JSON.parse kept (the last). Other parsers keep the first, so two nodes could hash the same file differently. New parseJsonStrict refuses duplicate keys at any depth, including escaped spellings like "\u0061" for "a", and names the path. Every CLI command that reads JSON uses it (exit 2).
  • Fixed: CLI JSON files saved with a UTF-8 byte order mark were refused as invalid JSON; the BOM is now skipped.
  • SPEC.md canonical JSON rule 2: duplicate keys are an error.
  • README: the job outcome example now shows outliers, the spec links are fixed, and the limits say plainly that Gaussia is at concept stage and that the coordinator service is not part of this repo.

gaussia-match v0.9.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:36
  • Security: closes the tiebreak copy gap left to the operator in v0.3.0. New MatchJob.publicSnapshot() returns the state and event log with every revealed result hash set to null while the job is open, so a coordinator serving it can't leak the pair's hashes to the third node before it commits. Commitments stay visible. After the job closes nothing is hidden. Types PublicJobSnapshot, PublicSlot, PublicJobEvent.

gaussia-match v0.9.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:34
  • Solidity reference library contracts/src/GaussiaMatch.sol: commitHash, verifyReveal, nodeScore, voteCommitHash (reverts on a choice outside 1..3) and candidateHash (reverts unless finders are sorted, unique and non-empty). Not deployed; shipped in the package for a future contract to import.
  • scripts/gen-sol-vectors.mjs generates contracts/test/Vectors.t.sol, one Foundry test per JSON vector (15), plus hand-written fuzz tests. pnpm test:sol runs them; a new CI job checks the generated file is current and runs forge test.
  • SPEC.md: "Solidity reference".

gaussia-match v0.8.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:33
  • JSON test vectors in vectors/ for canonical JSON, result commitments (with ABI encoding), node assignment (full rankings), sealed votes and sealed candidates. Shipped in the package. scripts/gen-vectors.mjs regenerates them; CI fails if the committed files drift.
  • scripts/check-canonical.py: an independent Python implementation of canonical JSON v0; all 12 canonical vectors match. Runs in CI.
  • Property tests (fast-check): a result commitment changes when any field changes, a vote commitment changes with the choice, a candidate hash changes when any quantity moves by one fixed-point unit, canonical JSON is idempotent and key-order independent.
  • SPEC.md: "Test vectors".

gaussia-match v0.7.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
  • Advisory tolerance compare: compareSignal checks tic, period, epoch folded by whole periods, and relative depth against tolerances the caller passes (no defaults). compareSignals pairs two signal lists and reports leftovers. extractSignals reads three result shapes.
  • CLI gaussia-match compare <a.json> <b.json> --period-tol --epoch-tol --depth-tol, which also prints whether the result hashes are equal. Exit 1 when a signal has no partner.
  • examples/result.node-c.json: the same signal with slightly different numbers.
  • SPEC.md: "Tolerance compare (advisory)". Equal result hashes stay the only match rule.

gaussia-match v0.6.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
  • Sealed candidates: candidateHash = keccak256(abi.encode(uint64 tic, uint256 period, uint256 epoch, uint256 depth, address[] finders)). Period and epoch in days (epoch in BTJD), depth in ppm, all fixed point × 10^9, rounded half to even. Finders sorted by address, duplicates refused. Checked against a hand-built ABI encoding in the tests and against Foundry cast by hand.
  • verifyCandidate, encodeCandidate, toFixed9 / fromFixed9, normalizeFinders.
  • CLI gaussia-match candidate, with --seal to check a reveal.
  • Fixed the package description.
  • SPEC.md: "Sealed candidates".

gaussia-match v0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
  • Sealed review votes: voteCommitHash = keccak256(abi.encode(VOTE_DOMAIN, signalId, uint8 choice, voter, salt)) with choices transit (1), not_transit (2), unsure (3) and a domain tag keccak256("gaussia.vote.v0"). makeVoteCommit, verifyVoteReveal.
  • VoteRound: commit phase, then reveals only after commits close (early_reveal), one commitment per voter, optional allow-list, reveals checked against the commitment (bad_reveal), tally only after reveals close.
  • tally({ threshold }): passed, rejected or undecided. The threshold has no default because Gaussia has not fixed it.
  • CLI gaussia-match vote: make a vote commitment, or check a reveal with --commit.
  • SPEC.md: "Sealed votes".

gaussia-match v0.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
  • Deterministic node assignment assignNodes: per-wallet score keccak256(abi.encode(bytes32 seed, bytes32 jobId, address wallet)), lowest scores selected. Independent of list order and address case. Duplicate wallets count once and are reported; exclude picks a tiebreak or replacement node from the rest of the ranking. nodeScore for a single wallet.
  • CLI gaussia-match assign --seed --job --nodes <file> [--count] [--exclude].... The nodes file is a JSON array of wallets or of objects with a wallet field.
  • examples/nodes.json.
  • SPEC.md: "Node assignment", including what a seed must and can't guarantee.

gaussia-match v0.3.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
  • Third-node tiebreak. A mismatch no longer closes the job: it moves to needs_tiebreak, assignTiebreak(wallet, now) opens round 2 for a wallet that has not held a slot, and the third node's hash decides by 2-of-3 majority. The pair node in the minority is listed in outliers.
  • New terminal status no_majority when all three hashes differ (nobody paid, nobody flagged). The mismatch status is gone; a mismatch event records the two hashes instead.
  • Round 2 has the same deadlines, no-show replacement and expiry as round 1.
  • SPEC.md: "Third-node tiebreak", including why the pair's hashes must be withheld from the third node.

gaussia-match v0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:39
  • Job state machine MatchJob for one job and two assigned wallets: both commit before either can reveal (early_reveal refused), one commitment per wallet (already_committed), copied commitments refused (duplicate_commit), reveals checked against the commitment (bad_reveal).
  • Deadlines from a caller-supplied clock: a commit no-show opens the slot for a blind replacement (needs_replacement, replace); a reveal no-show expires the job. No-shows are flagged in the outcome.
  • Outcomes verified (with the agreed hash and the wallets to pay) and mismatch. Event log for audit and replay.
  • SPEC.md: "Job state machine".