Function curveKeyPair

  • Returns a new random key pair to be used with the CURVE security mechanism.

    To correctly connect two sockets with this mechanism:

    Returns {
        publicKey: string;
        secretKey: string;
    }

    An object with a publicKey and a secretKey property, each being a 40 character Z85-encoded string.

    • publicKey: string
    • secretKey: string