Implements

Constructors

Methods

  • Generate and add a new key

    Parameters

    • f: ((publicKey) => Promise<undefined | boolean>)
        • (publicKey): Promise<undefined | boolean>
        • Parameters

          • publicKey: string

          Returns Promise<undefined | boolean>

    • options: {
          keepOnError?: boolean;
          keyId?: string;
      } = {}
      • Optional keepOnError?: boolean

        Default: false

      • Optional keyId?: string

        Default: public key of the new key pair

    Returns Promise<string>

    keyId of the new signer