decryptEc static method

Tuple<List<int>, PubKeyModes> decryptEc(
  1. String privKeyEnc,
  2. String passphrase
)

Decrypt a BIP38-encrypted Bitcoin private key with ECDSA.

This method decrypts a BIP38-encrypted Bitcoin private key using ECDSA decryption. It takes an encrypted private key and a passphrase as inputs and returns the decrypted private key and the selected public key mode (compressed or uncompressed) as a tuple.

  • privKeyEnc: The BIP38-encrypted Bitcoin private key.
  • passphrase: The passphrase for decryption.
  • Returns: A tuple (pair) containing the decrypted private key as a List

Implementation

static Tuple<List<int>, PubKeyModes> decryptEc(
    String privKeyEnc, String passphrase) {
  return Bip38EcDecrypter.decrypt(privKeyEnc, passphrase);
}