publicKey method

  1. @override
KeyPair publicKey(
  1. Uint8List sk
)
override

Implementation

@override
KeyPair publicKey(Uint8List sk) {
  var seed = sodium.crypto_sign_ed25519_sk_to_seed(sk);
  var temp = sodium.crypto_sign_seed_keypair(seed);
  return KeyPair(temp.publicKey, temp.privateKey);
}