diff options
author | polwex <polwex@sortug.com> | 2025-08-28 12:59:01 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-08-28 12:59:01 +0700 |
commit | 7c0681a06e0358887d2f64001dc43125554766c9 (patch) | |
tree | cd19f060a5f4147d6ee6928eecfe1abf03bdbb8e /desk/sur/nostril.hoon |
init
Diffstat (limited to 'desk/sur/nostril.hoon')
-rw-r--r-- | desk/sur/nostril.hoon | 28 |
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) +== +-- |