Keypair.fromSeedSync constructor

Keypair.fromSeedSync(
  1. Uint8List seed
)

Creates a Keypair from a 32-byte seed. Creates a Keypair from a 32-byte seed.

Implementation

// static Future<Keypair> fromSeed(final Uint8List seed) =>
//     compute(Keypair.fromSeedSync, seed);

/// {@template Keypair.fromSeedSync}
/// Creates a [Keypair] from a `32-byte` [seed].
/// {@endtemplate}
factory Keypair.fromSeedSync(final Uint8List seed) =>
    Keypair(nacl.sign.keypair.fromSeedSync(seed));