summaryrefslogtreecommitdiff
path: root/desk/sur/nostril.hoon
diff options
context:
space:
mode:
Diffstat (limited to 'desk/sur/nostril.hoon')
-rw-r--r--desk/sur/nostril.hoon28
1 files changed, 28 insertions, 0 deletions
diff --git a/desk/sur/nostril.hoon b/desk/sur/nostril.hoon
new file mode 100644
index 0000000..1e51695
--- /dev/null
+++ b/desk/sur/nostril.hoon
@@ -0,0 +1,28 @@
+|%
+++ shim-url 'http://localhost:8888/shim'
++$ state state-0
++$ state-0
+ $: %0
+ relays=(set @t)
+ events=(list event) :: let's limit it to 100
+ keys=(set keys)
+ ==
++$ keys [pub=@ priv=@]
+++ default ^- state-0 =/ s *state-0 s(relays (silt ~['wss://relay.damus.io' 'wss://nos.lol']))
+:: NOSTR structs
+::
+++ event
+$: id=@ux :: 32bytes
+ pubkey=@ux :: 32bytes
+ created-at=@ud :: seconds
+ kind=@ud
+ tags=(list tag)
+ content=@t
+ sig=@ux :: 64bytes
+==
+++ tag
+$: key=@t
+ value=@t
+ rest=(list @t)
+==
+--