decryptEc static method
Decrypt a BIP38-encrypted Bitcoin private key with ECDSA.
privKeyEnc: The BIP38-encrypted Bitcoin private key.passphrase: The passphrase for decryption.- Returns: A tuple (pair) containing the decrypted private key and the selected public key mode (compressed or uncompressed).
Implementation
static (List<int>, PubKeyModes) decryptEc(
String privKeyEnc,
String passphrase,
) {
return Bip38EcDecrypter.decrypt(privKeyEnc, passphrase);
}