Implements

Constructors

Methods

  • Generate and add a new key

    Parameters

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

          • publicKey: string

          Returns Promise<undefined | boolean>

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

        Default: false

      • OptionalkeyId?: string

        Default: public key of the new key pair

    Returns Promise<string>

    keyId of the new signer