upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--51.md1
-rw-r--r--A5.md6
2 files changed, 7 insertions, 0 deletions
diff --git a/51.md b/51.md
index f9d6e56..c582130 100644
--- a/51.md
+++ b/51.md
@@ -33,6 +33,7 @@ For example, _mute list_ can contain the public keys of spammers and bad actors
33| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) | 33| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) |
34| Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use | 34| Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use |
35| Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) | 35| Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) |
36| Favorite scrolls | 10013 | user favorite scrolls | `"e"` (kind:1227 scroll events) |
36| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) | 37| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) |
37| Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) | 38| Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) |
38| Emojis | 10030 | user preferred emojis and pointers to emoji sets | `"emoji"` (see [NIP-30](30.md)) and `"a"` (kind:30030 emoji set) | 39| Emojis | 10030 | user preferred emojis and pointers to emoji sets | `"emoji"` (see [NIP-30](30.md)) and `"a"` (kind:30030 emoji set) |
diff --git a/A5.md b/A5.md
index 7205654..916116c 100644
--- a/A5.md
+++ b/A5.md
@@ -24,6 +24,10 @@ This NIP defines a standard for publishing self-contained WebAssembly programs a
24} 24}
25``` 25```
26 26
27## Favorite scrolls list
28
29Clients can publish a list of favorite scrolls using a NIP-51 standard list event with kind `10013`. The list should include one `"e"` tag per scroll event (kind `1227`).
30
27## String Convention 31## String Convention
28 32
29Unless noted otherwise (for hex pubkeys and ids), the module passes strings to the host as `(ptr: i32, len: i32)` pairs into its linear memory. The host returns strings (and other variable-length data) by returning an `i32` pointer to a buffer in linear memory whose first 4 bytes are the `u32_be` byte-length of the payload that follows. 33Unless noted otherwise (for hex pubkeys and ids), the module passes strings to the host as `(ptr: i32, len: i32)` pairs into its linear memory. The host returns strings (and other variable-length data) by returning an `i32` pointer to a buffer in linear memory whose first 4 bytes are the `u32_be` byte-length of the payload that follows.
@@ -36,6 +40,8 @@ In order to keep the size of WASM programs small (<10kb) we recommend not includ
36 40
37Because of this the WASM program is expected to expose just a simple `alloc()` function to the host, which is used for the host to know a place it can write things to. No function capable of freeing memory is expected. 41Because of this the WASM program is expected to expose just a simple `alloc()` function to the host, which is used for the host to know a place it can write things to. No function capable of freeing memory is expected.
38 42
43Hosts are encouraged to enforce resource limits for scroll execution, including memory consumption, number of open handles, and CPU usage.
44
39--- 45---
40 46
41## Global Exports 47## Global Exports