Hierarchy (view full)

Constructors

Properties

identityKeys: {
    [nodeId: string]: CryptoKey;
} = {}

Type declaration

  • [nodeId: string]: CryptoKey
sessionKeys: {
    [keyId: string]: SessionPrivateKeyData;
} = {}

Type declaration

Methods

  • 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>

    Throws

    UnknownKeyError when the key does not exist

    Throws

    PrivateKeyStoreError when the look-up could not be done

Generated using TypeDoc