createSigner method
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);
}