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