Hierarchy (view full)

Constructors

Methods

  • Parameters

    • OptionalkeyOptions: Partial<RSAKeyGenOptions>

    Returns Promise<IdentityKeyPair>

  • Retrieve private session key, regardless of whether it's an initial key or not.

    Parameters

    • keyId: Buffer

      The key pair id (typically the serial number)

    • nodeId: string

      The id of the node that owns the key

    • peerId: string

      The id of the recipient, in case the key is bound to a recipient

    Returns Promise<CryptoKey>

    UnknownKeyError when the key does not exist

    PrivateKeyStoreError when the look-up could not be done

  • Return the public key of the latest, unbound session key pair for the specified nodeId.

    Parameters

    • nodeId: string

      The id of the node that owns the key

    Returns Promise<null | SessionKey>

    The public key if it exists or null otherwise

    PrivateKeyStoreError when the look-up could not be done

  • Parameters

    • privateKey: CryptoKey
    • keyId: Buffer
    • nodeId: string
    • OptionalpeerId: string

    Returns Promise<void>