diff options
Diffstat (limited to 'desk/lib/nostril.hoon')
-rw-r--r-- | desk/lib/nostril.hoon | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/desk/lib/nostril.hoon b/desk/lib/nostril.hoon deleted file mode 100644 index 48d4eb7..0000000 --- a/desk/lib/nostril.hoon +++ /dev/null @@ -1,28 +0,0 @@ -/- post=trill-post, nsur=nostr -/+ trill=trill-post, nostr, sr=sortug -|% -:: -++ post-to-event |= [=keys:nsur eny=@ p=post:post] ^- event:nsur - =/ cl (latest-post-content:trill contents.p) - =/ string (crip (content-list-to-md:trill cl)) - =/ ts (to-unix-secs:jikan:sr id.p) - =/ raw=raw-event:nsur [pub.keys ts 1 ~ string] - =/ event-id (hash-event:nostr raw) - =/ signature (sign-event:nostr priv.keys event-id eny) - ~& hash-and-signed=[event-id signature] - =/ =event:nsur :* - event-id - pub.keys - created-at.raw - kind.raw - tags.raw - content.raw - signature - == - event -++ cards -|_ =bowl:gall - ++ shim-binding ^- card:agent:gall - [%pass /binding %arvo %e %connect [~ /nostr-shim] dap.bowl] - -- --- |