fromSecretKey static method

Future<Secp256k1KeyIdentity> fromSecretKey(
  1. Uint8List secretKey
)

Implementation

static Future<Secp256k1KeyIdentity> fromSecretKey(Uint8List secretKey) async {
  final kp = await getECkeyFromPrivateKey(secretKey);
  final identity = Secp256k1KeyIdentity.fromKeyPair(
    kp.ecPublicKey!,
    kp.ecPrivateKey!,
  );
  return identity;
}