fromSecretKey static method

Secp256k1KeyIdentity fromSecretKey(
  1. Uint8List secretKey
)

Implementation

static Secp256k1KeyIdentity fromSecretKey(Uint8List secretKey) {
  try {
    final publicKey = getPublicFromPrivateKey(secretKey, false);
    final identity = Secp256k1KeyIdentity.fromKeyPair(publicKey!, secretKey);
    return identity;
  } catch (e) {
    rethrow;
  }
}