saveKeyPair method
[Future<[void>]] saveKeyPair(
- [[AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]] keyPair, ]
- [[HiveInterface] hive]
)
Saves the generated key pair to local storage.
Any future usage of the keys must be initiated from here.
params:
keyPair
: AsymmetricKeyPair to save.hive
: The HiveInterface to store keys in.
returns: None
Implementation
Future<void> saveKeyPair(
AsymmetricKeyPair<PublicKey, PrivateKey> keyPair,
HiveInterface hive,
) async