From a55a79e4e34e7c9c0e6a25a82eda60fa2788c0a3 Mon Sep 17 00:00:00 2001 From: landonMutch Date: Thu, 2 Mar 2023 14:05:49 +0900 Subject: [PATCH] adjust poll format -reorder, refine poll format -modify TODOs --- 69.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/69.md b/69.md index 4a73a7b2..ba89b684 100644 --- a/69.md +++ b/69.md @@ -8,7 +8,7 @@ The purpose of poll notes is to conduct quantitative public opinion polls over n ## Poll format -A poll is a self-contained nostr event which MUST have a primary description along with a predefined number of voting options. A poll MUST include at least 2 unique voting options, and each option MUST contain a corresponding secondary description. A poll MUST specify a primary tally method (`value` or `count`) and SHOULD specify a `closing_time`. Polls MAY also include a `consensus_threshold` integar (0-100), representing a percentage threshold to achieve consensus. +A poll is a self-contained nostr event which MUST have a primary description along with a predefined number of voting options. A poll MUST include at least 2 unique voting options, and each option MUST contain a corresponding secondary description. A poll MUST specify a primary tally method (`value` or `count`) and SHOULD specify a `closing_time`. When specified, a `closing_time` MUST be greater than the `created_at` field. Polls MAY also include a `consensus_threshold` integar (0-100), representing a percentage threshold to achieve poll consensus. ```json { @@ -22,12 +22,11 @@ A poll is a self-contained nostr event which MUST have a primary description alo ["poll_options": [ ["0", ], ["1", ], - ["2", ], ["n", ], ], ["tally_method", "value"||"count"], - ["closing_time", ], ["consensus_threshold", ], + ["closing_time", ], ], "content": , "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> @@ -48,9 +47,9 @@ Strict adherence to these requirements should enable a formal means of quantitat ## TODO -* define standardized polling format -* publish RFC to nostr devs and community +* define standardized voting zap format +* refine standardized polling format +* send pull request (RFC) to nostr-protocol/NIPs * implement polls in 1 relay * implement polls in 2 clients -* send pull request to nostr-protocol/NIPs * merge with nostr-protocol/NIPs