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);
}
if (this is OkpPrivateKey) {
// EdDSA bypasses pointycastle (no Ed25519 support there).
return _EddsaSigner(algorithm, this);
}
return _AsymmetricSigner(algorithm, this);
}