cast<T extends AptosCryptoPublicKey<IPublicKey> > method
T
cast<T extends AptosCryptoPublicKey<IPublicKey> >()
Implementation
T cast<T extends AptosCryptoPublicKey>() {
if (this is! T) {
throw DartAptosPluginException("Invalid public key type.",
details: {"expected": "$T", "type": algorithm.name});
}
return this as T;
}