createSigner method

Signer<PrivateKey> createSigner(
  1. Identifier algorithm
)

Creates a Signer using this key and the specified algorithm.

Implementation

Signer createSigner(Identifier algorithm) {
  if (this is SymmetricKey) {
    return _SymmetricSignerAndVerifier(algorithm, this as SymmetricKey);
  }

  return _AsymmetricSigner(algorithm, this);
}