fromSecretKey static method

Future<SchnorrIdentity> fromSecretKey(
  1. Uint8List secretKey
)

Implementation

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