org.bitcoinj.crypto.KeyCrypterException: Could not decrypt bytes

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

org.bitcoinj.crypto.KeyCrypterException: Could not decrypt bytes
at org.spongycastle.crypto.paddings.PKCS7Padding.padCount(PKCS7Padding.java:63)
at org.bitcoinj.crypto.KeyCrypterScrypt.decrypt(KeyCrypterScrypt.java:221)
at org.bitcoinj.crypto.DeterministicKey.findOrDeriveEncryptedPrivateKey(DeterministicKey.java:405)
at org.bitcoinj.crypto.DeterministicKey.decrypt(DeterministicKey.java:377)
at org.bitcoinj.crypto.DeterministicKey.decrypt(DeterministicKey.java:41)
at org.bitcoinj.core.ECKey.decrypt(ECKey.java:1091)
at org.bitcoinj.crypto.DeterministicKey.decrypt(DeterministicKey.java:388)
at org.bitcoinj.crypto.DeterministicKey.decrypt(DeterministicKey.java:41)
at org.bitcoinj.wallet.DecryptingKeyBag.maybeDecrypt(DecryptingKeyBag.java:50)
at org.bitcoinj.wallet.DecryptingKeyBag.findKeyFromPubHash(DecryptingKeyBag.java:67)
at org.bitcoinj.core.TransactionOutPoint.getConnectedRedeemData(TransactionOutPoint.java:182)
at org.bitcoinj.core.TransactionInput.getConnectedRedeemData(TransactionInput.java:316)
at org.bitcoinj.core.Wallet.signTransaction(Wallet.java:3810)
at org.multibit.hd.core.services.BitcoinNetworkService.signDirectly(BitcoinNetworkService.java:1035)
at org.multibit.hd.core.services.BitcoinNetworkService.performSend(BitcoinNetworkService.java:391)
at org.multibit.hd.core.services.BitcoinNetworkService.access$300(BitcoinNetworkService.java:61)
at org.multibit.hd.core.services.BitcoinNetworkService$2.run(BitcoinNetworkService.java:344)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.