keyPair_fromSeed static method
Implementation
static KeyPair keyPair_fromSeed(Uint8List seed) {
KeyPair kp = new KeyPair(publicKeyLength, secretKeyLength);
Uint8List pk = kp.publicKey;
Uint8List sk = kp.secretKey;
// copy sk
for (int i = 0; i < seedLength; i++) sk[i] = seed[i];
// generate pk from sk
TweetNaclFast.crypto_sign_keypair(pk, sk, true);
return kp;
}