blob: 78c00abeb4c830fc73a39dd23962a58a5d688c09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
|%
+$ keys [pub=@ priv=@]
+$ event
$: id=@ux :: 32bytes
pubkey=@ux :: 32bytes
created-at=@ud :: seconds
kind=@ud
tags=(list tag)
content=@t
sig=@ux :: 64bytes
==
+$ raw-event
$: pubkey=@ux :: 32bytes
created-at=@ud :: seconds
kind=@ud
tags=(list tag)
content=@t
==
+$ tag (list @t)
:: $: key=@t
:: value=@t
:: rest=(list @t)
:: ==
+$ user-meta :: NIP-1
$: name=@t
about=@t
picture=@t
other=(map @t @t)
==
:: Relay comms
+$ filter
$: ids=(list @ux)
authors=(list @ux)
kinds=(list @ud)
tag=(unit [key=@ values=(list @t)])
since=(unit @ud)
until=(unit @ud)
limit=(unit @ud)
==
++ shim
|%
++ url 'http://localhost:8888/shim'
+$ get (list [relay=@t filters=(list filter)])
+$ post [=event relays=(list @t)]
+$ req $%([%get get] [%post post])
--
--
|