Skip to content

Function: personalMessage() ​

personalMessage(ctx): Uint8Array

Defined in: proof.ts:137

The exact bytes a wallet signs (as a personal message) to answer a challenge. Both the client (signing) and the gateway (verifying) MUST derive the message identically; the gateway builds it from its own origin, gate and network. ASCII, one key:value line each, so a wallet can show it:

text
access-gate-gateway:access:v3
origin:<origin>
gate:<gate id>
network:<network>
nonce:<nonce>
consume:<digest>        (single-use gateways only)

Parameters ​

ctx ​

AccessMessageContext

Returns ​

Uint8Array

Throws ​

if a field is not in its canonical form (which also prevents line injection).

2026 Meddleware. All jams preserved.