interface L2PSMessagingConfig {
    l2psUid: string;
    publicKey: string;
    serverUrl: string;
    signFn: ((message: string) => string | Promise<string>);
}

Properties

l2psUid: string

L2PS network UID to join

publicKey: string

Client's ed25519 public key (hex string, 64+ chars)

serverUrl: string

WebSocket URL of the L2PS messaging server (e.g. "ws://localhost:3006")

signFn: ((message: string) => string | Promise<string>)

Function to sign proof strings with ed25519 private key. Returns hex signature.