BTCurious (OP)
|
|
June 28, 2011, 05:36:10 PM Last edit: June 28, 2011, 06:52:07 PM by BTCurious |
|
EDIT: The problem does not seem to be in the generation of the keys. Probably the importing then. Scroll a few posts down for details on that… I've been trying to generate priv/pub key pairs, and adding them to my wallet. It seemed to be working, however, when I send money to one of these, it doesn't appear back in my wallet. So either I didn't add it properly, or the keys/hashes are wrong. Can anyone check if these (example) keys and address are consistent with eachother? Address: 17fhqnxers2WAnsKRFV2cjXENe6QX2an4e
Public key: 0494578b727fad5819f856cb862905b16575aed19551e8e6ab2d35873dd7b6bdfdca5401234a26318e47b4b6e962695ab31600e9dcfdd12573b03fcafe0d308efb
Private key base58: 9CCMrm42J1XnyVkS6c91XSSjF6L6wFcQnTHoBBkrrKTj
Private key hex: 79bbba8a53ae3ca15a723bd6588991863e3015a03530c09c453370045a402bae
Private key full hex (as it would appear in the wallet): 30820113020101042079bbba8a53ae3ca15a723bd6588991863e3015a03530c09c453370045a402baea081a53081a2020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101a1440342000494578b727fad5819f856cb862905b16575aed19551e8e6ab2d35873dd7b6bdfdca5401234a26318e47b4b6e962695ab31600e9dcfdd12573b03fcafe0d308efb This is probably not going to work in the newbie forum, is it? :/
|
|
|
|
|
|
|
|
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
casascius
Mike Caldwell
VIP
Legendary
Offline
Activity: 1386
Merit: 1136
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
|
|
June 28, 2011, 05:37:42 PM |
|
All valid private keys in base 58 should start with a '5'. Yours doesn't, so it is definitely not right.
When you base58 a private key, it's 0x80 + 32byteprivatekey, followed by a 4-byte checksum.
so in other words, 8079bbba8a53ae3ca15a723bd6588991863e3015a03530c09c453370045a402baeXXXXXXXX where XXXXXXXX is first 4 bytes of sha256(sha256(8079bbba8a53ae3ca15a723bd6588991863e3015a03530c09c453370045a402bae))
|
Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable. I never believe them. If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins. I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion. Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice. Don't keep coins online. Use paper or hardware wallets instead.
|
|
|
BTCurious (OP)
|
|
June 28, 2011, 05:44:44 PM |
|
Is that convention, or does it actually show back in the wallet?
In the wallet one just stores the hex value, right? Or does that also have associated checksums and such?
|
|
|
|
casascius
Mike Caldwell
VIP
Legendary
Offline
Activity: 1386
Merit: 1136
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
|
|
June 28, 2011, 05:46:08 PM |
|
Is that convention, or does it actually show back in the wallet?
In the wallet one just stores the hex value, right? Or does that also have associated checksums and such?
The client only stores the hex value. This might seem simple and trivial, but you're using secp256k1 right?
|
Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable. I never believe them. If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins. I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion. Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice. Don't keep coins online. Use paper or hardware wallets instead.
|
|
|
BTCurious (OP)
|
|
June 28, 2011, 05:49:12 PM Last edit: June 28, 2011, 06:04:03 PM by BTCurious |
|
Yep, I am.
Edit: Someone on IRC just confirmed he got the same address from my private key, so that seems to work. Then the problem would be with importing… not sure where I messed that up... *thinks
|
|
|
|
SgtSpike
Legendary
Offline
Activity: 1400
Merit: 1005
|
|
June 28, 2011, 05:55:53 PM |
|
Subbing, for when you figure out the problem I'm interested in the final script.
|
|
|
|
BTCurious (OP)
|
|
June 28, 2011, 06:15:15 PM Last edit: June 28, 2011, 06:51:35 PM by BTCurious |
|
EDIT: I thought I started with -rescan before, but I just did it again, and now it's working properly. Awesome! Consider this solved
|
|
|
|
|