question about "hexsec" and "secret"
consider this dump of an unencrypted wallet: (don't worry, I won't store bitcoins at these keys, I'm just experimenting)
{
"addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
"compressed": false,
"hexsec": "c703063648fd19d64de086064692dd17",
"private": "308201130201010420c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23a081a53081a2020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101a1440342000400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
"pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
"reserve": 1,
"sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
"secret": "c703063648fd19d64de086064692dd17"
}
Why are "secret" and "hexsec" only 16 bytes?
This is the same key after loading the wallet with bitcoin 0.9 and encrypting it (and decrypting again with pywallet)
{
"addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
"compressed": false,
"encrypted_privkey": "cb9f081748ed5d42d010b10baa84748535e5588908e6cc70a28c44c550277ecdcaaf0d5e36cc9f919a0cf3471d2832d8",
"hexsec": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23",
"pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
"reserve": 1,
"sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
"secret": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23"
}
It almost looks like the first version was just cut off in the middle.
Another question: Is there any documentation about the various elements of the json that is produced with pywallet?
* For example what is the meaning of the "pool" array, its repeating all the addresses but without their keys but seems to contain additional info, what is the rationale behind structuring it that way and not just put all info about a key into one object?
* what is the empty ckey array at the beginning of the dump?
It indeed cut the private key in the middle because of a stupid error. Thank you so much for finding that. It's now fixed.
Json keys doc:
defaultkey: Default address of your wallet
keys: Info about the private keys in the wallet
pool: Addresses inside the pool (bitcoin doc for more info)
tx: Transactions saved inside your wallet
names: Labels of addresses
mkey: Info about the master key when the wallet is encrypted
ckey: Not used
Sir,
How it is possible from pywallet as following; please give me instruction & where i can change from pywallet. Which i will output:
{
"addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
"compressed": false,
"encrypted_privkey": "cb9f081748ed5d42d010b10baa84748535e5588908e6cc70a28c44c550277ecdcaaf0d5e36cc9f9
19a0cf3471d2832d8",
"hexsec": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23",
"pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac93
12cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
"reserve": 1,
"sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
"secret": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23"
}
OR
{
"addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
"compressed": false,
"hexsec": "c703063648fd19d64de086064692dd17",
"private": "308201130201010420c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6
a23a081a53081a2020101302c06072a8648ce3d0101022100ffffffffffffffffffffffffffffff
fffffffffffffffffffffffffefffffc2f300604010004010704410479be667ef9dcbbac55a0629
5ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b4
48a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03
bbfd25e8cd0364141020101a1440342000400481a16f118b4efe54b4783f857a9d45c8b5aec6cf0
3f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb9
81ee5",
"pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac93
12cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
"reserve": 1,
"sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
"secret": "c703063648fd19d64de086064692dd17"
}
However if it is not pywallet; please give me your script as following email id:
[email protected]