fromSeckey method

Future<Ed25519Keypair> fromSeckey(
  1. Uint8List seckey
)

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 using the fromSeedSync method.

Throws an AssertionError if the seckey is invalid.

Implementation

Future<Ed25519Keypair> fromSeckey(final Uint8List seckey) =>
    compute(fromSeckeySync, seckey);