From 9dda0ad2911dee481f2dd991a65194390edac9e8 Mon Sep 17 00:00:00 2001 From: Abhay Raizada Date: Thu, 9 May 2024 01:34:46 +0530 Subject: [PATCH] Move form spec to tags --- 101.md | 101 +++++++++++++++++++++++++-------------------------------- 1 file changed, 44 insertions(+), 57 deletions(-) diff --git a/101.md b/101.md index 70c7518..4a451a4 100644 --- a/101.md +++ b/101.md @@ -1,88 +1,75 @@ # NIP-101 - Forms On Nostr -`draft` `optional` `author:abhay-raizada` `author:rramaa` +`draft` `optional` `author:abhay-raizada` -## Form Template -Form template is stored in a parameterized replaceable event of `kind: 30168`. -The event structure is: +The nip provides a way for users to create form templates on nostr, and for other users to be able to fill them. -``` +## Form Template - Public + +Event `30168` describes a form with `field` tags that contain the description of each form field, with optional settings +```js { "kind": 30168, - "content" : "
" - "tags": [["d", ""]], + "content" : "" + "tags": [ + ["d", ""], + ["name", "Name of the form"], + ["settings", JSON.stringify({description: "","","