load function

Future<AsymmetricKeyPair<PublicKey, PrivateKey>> load(
  1. String fileName
)

Loads a private key from file and reconstructs the public key.

Implementation

Future<AsymmetricKeyPair> load(String fileName) async {
  var file = File(fileName);
  var d = await file.readAsString();

  return deserialize(BigInt.parse(d));
}