decryptNoEc static method
Decrypt a BIP38-encrypted Bitcoin private key without using ECDSA.
This method decrypts a BIP38-encrypted Bitcoin private key without relying on the Elliptic Curve Digital Signature Algorithm (ECDSA). 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<int>
and the selected public key mode (compressed or uncompressed).
Implementation
static Tuple<List<int>, PubKeyModes> decryptNoEc(
String privKeyEnc, String passphrase) {
return Bip38NoEcDecrypter.decrypt(privKeyEnc, passphrase);
}