Documentation
    Preparing search index...

    Interface KeyPair

    Serialized form of a session keypair, used to persist a session across page reloads. Both fields are hex-encoded (no 0x prefix). Pass an existing keypair into SessionCrypto to resume a session; omit it to generate a fresh one.

    client_id on the bridge is publicKey itself. Keep secretKey confidential — it grants the ability to decrypt messages addressed to this client.

    interface KeyPair {
        publicKey: string;
        secretKey: string;
    }
    Index

    Properties

    Properties

    publicKey: string

    32-byte public key, hex-encoded.

    secretKey: string

    32-byte secret key, hex-encoded. Must be kept private.