Bitcoin Forum
November 06, 2024, 04:30:32 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Passphrase Problems  (Read 1222 times)
The00Dustin (OP)
Hero Member
*****
Offline Offline

Activity: 807
Merit: 500


View Profile
February 23, 2012, 02:10:46 PM
 #1

Anytime I enter my passphrase in bitcoin-qt on Windows, it crashes (I can't even run bitcoin-qt on Linux).  When I run bitcoind on Windows or Linux and use walletpassphrase or walletpassphrasechange, I get this error:
error: {"code":-1,"message":"CKey::SetSecret() : secret must be 32 bytes"}
The same wallet passphrase works fine on the same wallet with pywallet.
This is the second time I have had passphrase problems (but the first time I have posted about them).  Is there some set of passphrase guidlines in order to avoid situations like this?
Pieter Wuille
Legendary
*
Offline Offline

Activity: 1072
Merit: 1181


View Profile WWW
February 23, 2012, 03:17:49 PM
 #2

This looks like some sort of strange corruption occurred in your wallet; can you provide any more details, for example what you did to get it in this state?

I do Bitcoin stuff.
The00Dustin (OP)
Hero Member
*****
Offline Offline

Activity: 807
Merit: 500


View Profile
February 23, 2012, 03:46:05 PM
 #3

Unfortunately, I have no clue, but I can tell you I sent all of my coins out of it by importing the relevant keys into a new wallet and sending the BTC from there, and bitcoin-qt reflected this change accurately in the old wallet, live.  I will do some testing and report back.
The00Dustin (OP)
Hero Member
*****
Offline Offline

Activity: 807
Merit: 500


View Profile
February 23, 2012, 05:30:26 PM
 #4

Sure enough, file was corrupted.  I'm not sure how that happened, but I'm guessing it was my fault (manipulated it with bitcoinqt running or something).  File was 100KiB bigger than it needed to be (imported all addresses to new wallet, ran rescan, encrypted with same key, new file is 100KiB smaller, presumably with 100 more addresses (new keypool).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!