• Creates a signer interface based on an existing keypair and an algorithm descriptor.

    Type Parameters

    Parameters

    • input: {
          algorithm: Alg;
          id?: Id;
          keypair: KeyringPair | Keypair;
      }

      Holds all function arguments.

      • algorithm: Alg

        An algorithm identifier from the ALGORITHMS map.

      • Optional id?: Id

        Sets the signer's id property.

      • keypair: KeyringPair | Keypair

        A polkadot KeyringPair or combination of secretKey & publicKey.

    Returns Promise<SignerInterface<Alg, Id>>

    A signer interface.