Bitcoin Forum
May 21, 2024, 05:45:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 [142] 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 ... 291 »
2821  Alternate cryptocurrencies / Altcoin Discussion / Re: Miner's Official Coin LAUNCH - NUGGETS (NUGs) on: July 19, 2013, 03:20:43 PM

If the noodle guy hasn't PM's me now addy which I told him to let night that's his fault, I can't pay bitcons into thin air.
The noodle guy told you 3 times "ADDRESS IN SIGNATURE"
4 times now
If it's so hard: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3


Grats for your 3000th post 'noodle guy'.   Grin
Thanks!
2822  Bitcoin / Development & Technical Discussion / Re: Pywallet: manage your wallets/addresses/keys/tx's on: July 19, 2013, 03:19:28 PM
Donation address for pywallet is in the about page of the WUI, it's 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5. Thank you for making me mention it.

However a little confused on hexsec, sec, and secret. Hexsec and sec appear to be identical in my dump for all keys.  Will they always be?  At first I though secret was private key in hexadecimal and sec was private key in import format but I am confused by fact that there are three entries and the naming "hexsec" is obviously not in hexadecimal.
hexsec is the hexadecimal private key (you must have made a mistake with your copypastings)
secret is hexsec alone if uncompressed address, and hexsec+'\x01' if compressed address
sec is WIF formatted private key

Note that I found a bug though, looks like all the keys have an additional \x01 at the end


Lastly couldn't find it but is there an option to do a dump of an encrypted wallet (without providing passphrase).

As an example something like

Code:
        {
            "addr": "1BJ4WxK17Ty4KAUtPYqDwHxtk1W2QSoGjj",
            "compressed": true,
            "encrypted_privkey": "92a29468f382783fb7905be81a9c2aa7c22d8ad48e10b5dd33aa1593f5835318f04cfb1b668063537da550796c57055b",
            "pubkey": "03f30cf41f7aa258c700d486688a15eea564db1d82fb900c8a8af0e0042f60a8cc",
            "reserve": 1,
        },
Maybe I don't understand, but it's already what is happening when you dump an encrypted wallet without providing the passphrase.
2823  Bitcoin / Development & Technical Discussion / Re: Any documentation (other than the code) on the format of the wallet.dat file? on: July 19, 2013, 02:13:51 PM
"key" is an uncrypted key
"ckey" is an encrypted key
2824  Alternate cryptocurrencies / Altcoin Discussion / Re: Primecoin to reach 0.05 by the end of the month. on: July 19, 2013, 01:24:55 PM
I'd even say 2BTC/XPM by the end of the month
2825  Local / Discussions générales et utilisation du Bitcoin / Re: Questions sur les adresses Bitcoin on: July 19, 2013, 01:19:41 PM
Ah je savais même pas! D'ailleurs je l'ai même jamais lu cet article, j'ai entendu dire qu'il était bof.

Quote
Une adresse bitcoin est fabriquée à partir du RIPEMD-160 du SHA-256 de la clef publique que l'adresse identifie.

Comment est déterminée la clef publique ?
Tout ça marche grâce à des courbes spéciales, les courbes elliptiques (y^2 = x^3 + a * x + b mod p).
Bitcoin en utilise une particulière, la secp256k1. Sur cette courbe on définit l'opération "addition de point" et on y prend un point précis, appelé G.

Une clé privée pk est seulement un nombre.
La clé publique est alors (pk * G), c'est-à-dire (G + G + G + ... + G).

C'est donc un point avec deux coordonnées: x et y. Lorsque qu'on veut la transformer en "texte", il y a deux façons de faire (une clé publique, et donc une clé privée correspond donc à DEUX adresses): une méthode "non-compressée" (ce qui a été utilisé par défaut au début) et une "compressée".

  • Non-compressée: préfixe+X+Y
    • préfixe = '04'
    • X est la valeur de x en hexadécimal, de longueur 32 octets (64 caractères hexadécimaux, on remplit de '0' à gauche si x est trop petit)
    • Y est la valeur de y en hexadécimal, de longueur 32 octets (64 caractères hexadécimaux, on remplit de '0' à gauche si y est trop petit)

  • Compressée: préfixe+X
    • préfixe = '02' si Y est pair, et '03' si Y est impair
    • X est la valeur de x en hexadécimal, de longueur 32 octets (64 caractères hexadécimaux, on remplit de '0' à gauche si x est trop petit)


Par exemple:
Prenons la clé privée 14063D4FCF4C0F0BFDB1E152BC18EBE286FE7CDA3B0E4115062EAE81D573048A en hexadécimal, c'est-à-dire 9057281212247872144055363307744826308390942297983618612007248844883030639754 en décimal (preuve)
La clé publique est le point ayant pour coordonnées:
  •   x=92696E83591C650907DCDFFBF966F8FA932C16462F0D248E05F8C6F4C3CC82DA en hexadécimal
  •   y=8898735D0F504066F2F1ED97C14C257A30E920D0D03F81B69614ACF699544965 en hexadécimal


Les équivalents en texte sont donc:
  • 0292696E83591C650907DCDFFBF966F8FA932C16462F0D248E05F8C6F4C3CC82DA8898735D0F504 066F2F1ED97C14C257A30E920D0D03F81B69614ACF699544965
  • 038898735D0F504066F2F1ED97C14C257A30E920D0D03F81B69614ACF699544965  (03 car y est impair)

Les hash160 correspondants sont ripemd160(sha256(publickey)) où publickey est la version binaire des 02xxx et 03xxx ci-dessus. La conversion est primordiale!
Ce qui donne '4a8299e0b5e21692a99b99cc552a8f77df6ee307' et 'aa1abed018c83ff17055fdfbe9fed3e0530c4512'

Liens utiles:
https://www.bitaddress.org
http://www.fileformat.info/tool/hash.htm
http://fr.wikipedia.org/wiki/Cryptographie_sur_les_courbes_elliptiques
http://fr.wikipedia.org/wiki/Courbe_elliptique
2826  Alternate cryptocurrencies / Altcoin Discussion / Re: Miner's Official Coin LAUNCH - NUGGETS (NUGs) on: July 19, 2013, 12:09:26 PM
Loser,  I have more education and a higher IQ than you and all the monkeys in your entire family tree.
I'm still accumulating ixCoin.

[...]

I think the bankers will target it se a bitcoin 2.0 for another ETF next year.
2827  Alternate cryptocurrencies / Altcoin Discussion / Re: solidcoin is dead? on: July 19, 2013, 11:26:22 AM
dead
2828  Bitcoin / Development & Technical Discussion / Re: "watching wallet" workaround in bitcoind (fixed keypool, unknown decrypt key) on: July 19, 2013, 10:23:32 AM
I'll put this feature in pywallet. I'm happy if anyone wants to tip me but I'll do this without any bounty.
I think I can implement it in the public realease within 1-2 weeks. I have to implement the encrypted wallets recovery first.
I'll test the concept sooner though.
2829  Local / Discussions générales et utilisation du Bitcoin / Re: J'offre des petits bitcoins ;) on: July 19, 2013, 09:42:44 AM
Ca c'est sympa! Smiley

(pas de mBTC pour moi, je commente juste)
2830  Alternate cryptocurrencies / Altcoin Discussion / Re: Miner's Official Coin LAUNCH - NUGGETS (NUGs) on: July 19, 2013, 09:17:00 AM
What haven't I paid?  You think o have time to read every single post?

I told people to Send me their BTC addresses.  I've gotten NONE.
I hope you're not talking about me
I posted 3 times now "ADDRESS IN MY SIGNATURE"


If the noodle guy hasn't PM's me now addy which I told him to let night that's his fault, I can't pay bitcons into thin air.
The noodle guy told you 3 times "ADDRESS IN SIGNATURE"
4 times now
If it's so hard: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3


Anyway, looks like you're asking for help.
I posted at least 5 posts to tell you what to do and what you did wrong. You replied to none of them.
I don't think I hate you like most people here, I don't know why because you'd fucking deserve it.
When EVERYBODY is against you, couldn't you just stop 5 minutes and wonder why it is this way? Are you so pedantic that you automatically think that they're ALL wrong?

By the way, if trolling you deserve a 9001/10
2831  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 19, 2013, 12:05:47 AM
Absolutely
2832  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 11:58:18 PM
The private key is the "hexsec" entry
If the wallet is encrypted you need to put the passphrase by adding ' --passphrase=PASSPHRASE' in the command line
2833  Other / Meta / Re: Activity is not increasing on: July 18, 2013, 11:29:51 PM
Activity != posts count
Use the search ffs there are at least 10 similar threads in this forum
2834  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 11:27:21 PM
Nope, pywallet will only deal with files you provide to it
Also, dumping won't modify them
2835  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 11:09:49 PM
Are you sure the directory and filename are correct?
Do you have the correct permissions? (maybe try sudo?)
Are you sure all the bitcoind/bitcoin-qt are closed? (run fuser on it)
2836  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 10:34:13 PM
Oh yeah sorry
Code:
wget https://raw.github.com/jackjack-jj/pywallet/master/pywallet.py
in the directory you want to put pywallet in

In Github you can retrieve the raw file by clicking the 'Raw' button, top left of screen when you click on the file.
2837  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 10:16:54 PM
Code:
python pywallet.py
should work and print help.

Then
Code:
python pywallet.py --dumpwallet --datadir=/home/jj --wallet=walletzz.dat
to dump /home/jj/walletzz.dat
2838  Alternate cryptocurrencies / Altcoin Discussion / Re: [BOUNTIES][JPC]Jupitercoin "god-like" bounties! on: July 18, 2013, 10:07:55 PM
reserved
2839  Bitcoin / Bitcoin Technical Support / Re: Help: recover privkey after exporting from Qt? on: July 18, 2013, 10:03:42 PM
Yes
2840  Bitcoin / Development & Technical Discussion / Re: Any documentation (other than the code) on the format of the wallet.dat file? on: July 18, 2013, 09:55:13 PM
I don't think so.
It's a berkeley db file.

Look at the pywallet code if you want more than one point of view.
kds is the key and vds is the value.

For example, the (key, value) pair for an unencrypted private key would be:
('\x03key\x21\x03\x01\x01\x01...\x01', '\x20\x54\xfd...\x31')
If the public key is '03010101...01' and the private key is '54fd...31'
Pages: « 1 ... 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 [142] 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 ... 291 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!