Class: Key

Key(settingsopt)

Represents a cryptographic key.

Constructor

new Key(settingsopt)

Create an instance of a Fabric Key, either restoring from some known values or from prior knowledge. For instance, you can call `new Key()` to create a fresh keypair, or `new Key({ public: 'deadbeef...' })` to create it from a known public key.
Parameters:
Name Type Attributes Description
settings Object <optional>
Initialization for the key.
Properties
Name Type Attributes Default Description
network String <optional>
Network string.
seed String <optional>
Mnemonic seed for initializing the key.
public String <optional>
Public key in hex.
private String <optional>
Private key in hex.
purpose String <optional>
44 Constrains derivations to this space.
Source: