Class WritableName

WritableName is a Name that has a signing key associated with it such that new IPNS record Revisions can be created and signed for it.

New WritablNames can be generated using the create function.

To load a WritableName from a saved binary representation, see from.

Hierarchy

Constructors

Accessors

Methods

Constructors

Accessors

  • get bytes(): Uint8Array
  • A binary representation of the IPNS verification key.

    Returns Uint8Array

  • get key(): PrivateKey
  • The private signing key, as a libp2p PrivateKey object.

    To save a key for later loading with from, write the contents of key.bytes somewhere safe.

    Returns PrivateKey

Methods

  • Returns

    the string representation of the IPNS verification key (e.g. k51qzi5uqu5di9agapykyjh3tqrf7i14a7fjq46oo0f6dxiimj62knq13059lt)

    Returns string

Generated using TypeDoc