bip38-decrypt
v1.0.2
Published
Decrypt and Verify a Bip38 Encrypted Private Key
Downloads
6
Maintainers
Readme
bip38-decrypt
A small node module that accepts a Base58, Bip38 encrypted private key and a password and returns the decrypted results after verifing that the decoded private key is the one we expected (which dosn't exist in the standart bitcoin libs in node).
var bip38Decrypt = require('bip38Decrypt');
bip38Decrypt(encryptedPrivKey,password, function(err,decryptedPrivateWif) {
if (err)
console.log(err.msg);
return err;
else {
console.log(decryptedPrivateWif);
return decryptedPrivateWif;
}
});