fromSeckey static method

Future<Keypair> fromSeckey(
  1. Uint8List seckey, {
  2. bool skipValidation = false,
})

Creates a Keypair from a seckey byte array.

This method should only be used to recreate a keypair from a previously generated seckey. Generating keypairs from a random seed should be done with the Keypair.fromSeedSync method.

Throws a KeypairException for invalid seckeys that do not pass validation.

Implementation

static Future<Keypair> fromSeckey(
  final Uint8List seckey, {
  final bool skipValidation = false,
}) =>
    compute(
        (_) => Keypair.fromSeckeySync(seckey, skipValidation: skipValidation),
        null);