newKeyPairFromSeed method

  1. @override
Future<SimpleKeyPair> newKeyPairFromSeed(
  1. List<int> seed
)
override

Implementation

@override
Future<SimpleKeyPair> newKeyPairFromSeed(List<int> seed) {
  final modifiedBytes = DartX25519.modifiedPrivateKeyBytes(seed);
  return Future<SimpleKeyPairData>.value(SimpleKeyPairData(
    modifiedBytes,
    publicKey: Future<SimplePublicKey>(
      () => DartX25519._publicKey(modifiedBytes),
    ),
    type: KeyPairType.x25519,
  ));
}