loadKeyPair static method

Future<LocalSigning> loadKeyPair(
  1. String path
)

Implementation

static Future<LocalSigning> loadKeyPair(String path) async {
  final file = File(path);
  final pkcs8Bytes = file.readAsBytesSync().toList();
  return LocalSigning.ed25519(pkcs8Bytes);
}