fromSecretSeedList static method

KeyPair fromSecretSeedList(
  1. Uint8List seed
)

Creates a new KeyPair object from a raw 32 byte secret seed.

Implementation

static KeyPair fromSecretSeedList(Uint8List seed) {
  ed25519.SigningKey sk = ed25519.SigningKey.fromSeed(seed);
  return new KeyPair(sk.publicKey.asTypedList, sk.asTypedList);
}