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--5C.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/5C.md b/5C.md
index f4b8e64..fc46ed2 100644
--- a/5C.md
+++ b/5C.md
@@ -125,14 +125,14 @@ When the host calls `run()`, it passes a single pointer to a buffer containing a
125 125
126The host must prefix every parameter with a single presence byte: `1` indicates the parameter is provided, and `0` indicates it is omitted. If a required parameter is prefixed with `0`, the program must panic. 126The host must prefix every parameter with a single presence byte: `1` indicates the parameter is provided, and `0` indicates it is omitted. If a required parameter is prefixed with `0`, the program must panic.
127 127
128| Type | Encoding | Size (if provided) | 128| Type | Encoding | Size (if provided) |
129| ------------ | --------------------------------------------------------------------- | ------------------ | 129| ------------ | -----------------------------------| ------------------ |
130| `public_key` | 32 bytes | 32 bytes | 130| `public_key` | 32 bytes | 32 bytes |
131| `event` | i32 handle | 4 bytes | 131| `event` | i32 handle | 4 bytes |
132| `string` | u32_be length followed by UTF-8 bytes | 4 + len bytes | 132| `string` | u32 length followed by UTF-8 bytes | 4 + len bytes |
133| `number` | i32 | 4 bytes | 133| `number` | i32 | 4 bytes |
134| `timestamp` | Unix timestamp as u32_be | 4 bytes | 134| `timestamp` | Unix timestamp as u32 | 4 bytes |
135| `relay` | Relay URL, same encoding as string | 4 + len bytes | 135| `relay` | Relay URL, same encoding as string | 4 + len bytes |
136 136
137 137
138For example, in a scroll with these parameters: 138For example, in a scroll with these parameters: