diff options
Diffstat (limited to '5C.md')
| -rw-r--r-- | 5C.md | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -125,14 +125,14 @@ When the host calls `run()`, it passes a single pointer to a buffer containing a | |||
| 125 | 125 | ||
| 126 | The 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. | 126 | The 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 | ||
| 138 | For example, in a scroll with these parameters: | 138 | For example, in a scroll with these parameters: |