fromSecretKey static method

Future<P256Identity> fromSecretKey(
  1. Uint8List secretKey
)

Implementation

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