notifyNewKeyCreatedCallback function

Future<String> Function(Map<String, dynamic>) notifyNewKeyCreatedCallback(
  1. CryptoStrategies strategies
)

Implementation

Future<String> Function(Map<String, dynamic>) notifyNewKeyCreatedCallback(
  CryptoStrategies strategies
) {
  return (Map<String, dynamic> json) async {
    await strategies.notifyNewKeyCreated(
      CardinalSdk.internal(json["apis"]! as String),
      CardinalRsaPrivateKey.fromPkcs8Base64(json["key"]! as String)
    );
    return "";
  };
}