@orangecheck/vote-cli 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/cli.js +435 -177
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,20 @@ Flags:
|
|
|
49
49
|
- `--no-verify` — skip BIP-322 checks (faster, less safe — use only for sanity probes).
|
|
50
50
|
- `--json` — JSON output instead of the human-readable bar chart.
|
|
51
51
|
|
|
52
|
+
### `oc-vote vote --poll <poll_id> --voter <address> --option <id>`
|
|
53
|
+
|
|
54
|
+
Build the ballot, have it signed (`--sig`, or paste a BIP-322 signature of the printed ballot_id), publish it, then ask each relay alone for it back. The ballot is in only once at least 2 relays serve a copy whose ballot signature and Nostr signature both hold; an OK from a relay is not enough. Below that it says the ballot isn't in yet, prints the signed event, and exits 2. In an anchored poll its stamp is read back the same way, and `vote` exits 2 while the stamp is on fewer than 2 relays, or when it could not be made at all, even with the ballot in: a final count needs the stamp.
|
|
55
|
+
|
|
56
|
+
- `--json` — `in`, `served_by`, `asked`, `quorum` and the signed `event`.
|
|
57
|
+
|
|
58
|
+
### `oc-vote create` and `oc-vote reveal`
|
|
59
|
+
|
|
60
|
+
The same read-back for a poll and a reveal: published only once at least 2 relays serve back a copy that verifies. Below that each says so, prints the signed event, and exits 2. `reveal` run again sends a reveal already signed and on a relay to the relays that lack it, with nothing new to sign.
|
|
61
|
+
|
|
62
|
+
### `oc-vote republish <file>`
|
|
63
|
+
|
|
64
|
+
Send a signed poll, ballot, reveal or ballot stamp again, as it is, from an `event:` line or `--json` output. Nothing new is signed, so a poll keeps its id. Same read-back, same exit status: 0 once it is in, 2 while it isn't.
|
|
65
|
+
|
|
52
66
|
### `oc-vote verify <poll_id>`
|
|
53
67
|
|
|
54
68
|
Verify every BIP-322 signature on the poll and on each ballot. Prints a short summary; `--json` gives per-ballot details.
|