Interface LoadOrCreateSelfKeyOptions

interface LoadOrCreateSelfKeyOptions {
    dek?: DEKConfig;
    keyType?: KeyType;
    pass?: string;
    selfKey?: string;
}

Hierarchy (view full)

Properties

dek?: DEKConfig

This key configures how the keychain encryption key is derived from the configured password

keyType?: KeyType

If no private key is found in the datastore, create one with this type

Default

'Ed25519'
pass?: string

The password is used to derive a key which encrypts the keychain at rest

selfKey?: string

The 'self' key is the private key of the node from which the peer id is derived.

It cannot be renamed or removed.

By default it is stored under the 'self' key, to use a different name, pass this option.

Default

'self'