newKeyPairFromSeed method

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

Implementation

@override
Future<SimpleKeyPair> newKeyPairFromSeed(List<int> seed) {
  if (seed.length != 32) {
    throw ArgumentError('Seed must have 32 bytes');
  }
  return Future<SimpleKeyPairData>.value(SimpleKeyPairData(
    List<int>.unmodifiable(seed),
    type: KeyPairType.ed25519,
    publicKey: _publicKey(seed),
  ));
}