Skip to content

routier-collection


routier-collection / plugins/encryption/src / Keyring

Type Alias: Keyring

Keyring = object

Defined in: plugins/encryption/src/keyring.ts:50

Properties

keyIds

readonly keyIds: string[]

Defined in: plugins/encryption/src/keyring.ts:56

Every id the keyring can read, for a re-encryption pass to reason about.


activeKeyId

readonly activeKeyId: string

Defined in: plugins/encryption/src/keyring.ts:58

The id new writes use.

Methods

active()

active(): Promise<DerivedKey>

Defined in: plugins/encryption/src/keyring.ts:52

The key new writes use.

Returns

Promise<DerivedKey>


get()

get(keyId): Promise<DerivedKey>

Defined in: plugins/encryption/src/keyring.ts:54

A key by id, for reading a value written earlier.

Parameters

keyId

string

Returns

Promise<DerivedKey>

Released under the MIT License.