Skip to main content

saveKeyPair method

[Future<[void>]] saveKeyPair(

  1. [[AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]] keyPair, ]
  2. [[HiveInterface] hive]

)

Saves the generated key pair to local storage.

Any future usage of the keys must be initiated from here.

params:

returns: None

Implementation

Future<void> saveKeyPair(
AsymmetricKeyPair<PublicKey, PrivateKey> keyPair,
HiveInterface hive,
) async
  1. talawa
  2. encryptor
  3. Encryptor
  4. saveKeyPair method
Encryptor class