From e0160f0f5d06b637acb0a083e76ff5ceeb78f884 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 24 Mar 2026 22:36:56 -0300 Subject: add favorite scrolls list. --- A5.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'A5.md') 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 } ``` +## Favorite scrolls list + +Clients 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`). + ## String Convention Unless 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 Because 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. +Hosts are encouraged to enforce resource limits for scroll execution, including memory consumption, number of open handles, and CPU usage. + --- ## Global Exports -- cgit v1.2.3