Bitcoin Forum
June 15, 2024, 04:11:25 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 »
3081  Economy / Marketplace / Re: I'm selling Reloadable Visa Debit cards for Bitcoin. on: January 06, 2011, 02:43:03 AM
This feels too good to be true, can I fire my bank now?

lol

That's exactly what I thought Smiley
3082  Bitcoin / Development & Technical Discussion / Re: A full shell script implementation of bitcoin ? on: January 06, 2011, 02:16:42 AM

I'm trying to implement the base58 functions.  I'm almost there but I have difficulties with the checksum.


Code:
#!/bin/bash

base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z})

EncodeBase58() {
    # 58 =0x3A
    bc <<<"ibase=16; n=${1^^}; while(n>0) { n%3A ; n/=3A }" |
    tac |
    while read n
    do echo -n ${base58[n]}
    done
}

Hash160ToAddress() {
    ADDRESSVERSION=00
    EncodeBase58 "${ADDRESSVERSION}$1$(Checksum "$1")"
}

Checksum() {
    xxd -p -r <<<"$1" |
    openssl dgst -sha256 -binary |
    openssl dgst -sha256 -hex |
    cut -d\  -f2 |
    sed -r "s/^.*((..){4})/\1/"
}

Hash160() {
    echo -n "$1" |
    openssl dgst -sha256 -binary |
    openssl dgst -rmd160 -hex |
    cut -d\  -f2
}

H=0057b0dc5aac7c215a9a458d6c3c85cd21089af8
Hash160ToAddress $H
# I should get     112p3sLidyEptFEfx3C2RCvFoRPK89HyBT
# I actually get     2p3sLidyEptFEfx3C2RCvFoRPK7JQWdq
3083  Bitcoin / Project Development / Re: 50 BTC bounty for a PEM public key to bitcoin address convertor on: January 06, 2011, 02:09:22 AM
That's very generous, but I don't feel right taking the bounty for 5 minute's work. I'll send back the 50. Is that address in the top post yours?

btc=1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt

Yes it is.  Thanks.
3084  Economy / Trading Discussion / Re: USD cash for bitcoin exchange on: January 05, 2011, 11:37:55 PM
Feel free to use the code source of my own exchange page Wink  !
3085  Bitcoin / Project Development / Re: 100 BTC for a key extracting program on: January 05, 2011, 10:04:43 PM
One problem i can see with this is that when you base64 decode the PEM public key you're left with the key in DER format, but the key is stored in the wallet as a raw byte object, and it's this raw object that is hashed and turned into a bitcoin address, so the simply hashing the DER format key the same way isn't going to work unfortunately.

Isn't DER format the same as raw byte ?   Anyway I opened an other thread and Hal found out that the key has a "ASN.1 cruft" or something.  So I add to add a tail -c 64.

I have to read about this ASN thing.
3086  Bitcoin / Project Development / Re: 50 BTC bounty for a PEM public key to bitcoin address convertor on: January 05, 2011, 09:49:43 PM
Try doing tail -c 65 after the base64 -d. Your pubkey has ASN.1 cruft.

Thank you !  You want the 50 BTC ?

PS oh sorry I hadn't seen you bitcoin address in your signature.


Paiement done
23a76591017b364bc3e9ee4a8cf0a317d1a1dfa571190b5caf91c1b9a647747e
3087  Economy / Marketplace / Re: Looking for BitCoins on: January 05, 2011, 09:32:20 PM
Good Evening Grondilu, the wire is done! I think you will receive the funds today or the day after !

Good evening


Hi.  Might be a bit longer I'm afraid.  Probably friday.

If you're french please post on the french thread and tell us about yourself.  We are especially interested in learning how people find out about bitcoin.
3088  Economy / Marketplace / Re: Looking for BitCoins on: January 05, 2011, 09:12:58 PM
I'm in Paris too and I bought my first bitcoins with bitcoin4cash.com.  It worked like a charm.

I've recently implemented a similar service.  Checkout my signature.
3089  Bitcoin / Project Development / 50 BTC bounty for a PEM public key to bitcoin address convertor on: January 05, 2011, 08:28:15 PM
*** EDIT:  bounty has closed.  Hal won it. ***

I've tried to make one but I've failed, so I start an other bounty.

dirtyfilthy has made a C program which exports a wallet's private key to a openssl readable PEM format.


So given a bitcoin address such as :

btc=1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt


I can run :

bc_key $btc ~/.bitcoin/wallet.dat |
openssl ec -pubout

Which gives me a public key :

-----BEGIN PUBLIC KEY-----
MIH1MIGuBgcqhkjOPQIBMIGiAgEBMCwGByqGSM49AQECIQD/////////////////
///////////////////+///8LzAGBAEABAEHBEEEeb5mfvncu6xVoGKVzocLBwKb
/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIh
AP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABJJ6TBhmiWm4
Y1ACBVJVn0oyG9Ay5IzEZq8cPyrs1PERl963YQh5UrGOT0NodynfHswkz8bUpaJW
FsowR/l9wXc=
-----END PUBLIC KEY-----


Now I need a program that reads this public key, and ouputs the corresponding bitcoin address.

Such a program exists in the bitcoin code.  I think it's the function "PubKeyToAddress" in base58.h.

I want to implement this function in bash, using only openssl et standard filters.

As I understand it, I have to do the following steps :

- computes the sha256 of the key ;
- computes the rmd160 of this hash ;
- add a byte at the begin for the version number (?) ;
- add four bytes at the end for the check sum ;
- encode the result in base58 ;




I've tried using blockexplorer.com/q/hashtoaddress for the last three steps.  This gave me this code :


wget -O - -q http://blockexplorer.com/q/hashtoaddress/$(
grep -v 'PUBLIC KEY' <<<"
-----BEGIN PUBLIC KEY-----
MIH1MIGuBgcqhkjOPQIBMIGiAgEBMCwGByqGSM49AQECIQD/////////////////
///////////////////+///8LzAGBAEABAEHBEEEeb5mfvncu6xVoGKVzocLBwKb
/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIh
AP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABJJ6TBhmiWm4
Y1ACBVJVn0oyG9Ay5IzEZq8cPyrs1PERl963YQh5UrGOT0NodynfHswkz8bUpaJW
FsowR/l9wXc=
-----END PUBLIC KEY-----" |
base64 -d |
openssl dgst -sha256 |
cut -d\  -f2 |
xxd -r -p |
openssl dgst -rmd160 |
cut -d\  -f2
)


But it just doesn't give me the correct bitcoin address.

50 BTC for whoever fixes that.




3090  Bitcoin / Project Development / Re: 100 BTC for a key extracting program on: January 05, 2011, 07:13:22 PM

Hum... I used your tool to extract the private key from one of my bitcoin address :


1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt

I obtained this public key (using conversion with "openssl ec -pubout -in privkey.pem") :

-----BEGIN PUBLIC KEY-----
MIH1MIGuBgcqhkjOPQIBMIGiAgEBMCwGByqGSM49AQECIQD/////////////////
///////////////////+///8LzAGBAEABAEHBEEEeb5mfvncu6xVoGKVzocLBwKb
/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIh
AP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABJJ6TBhmiWm4
Y1ACBVJVn0oyG9Ay5IzEZq8cPyrs1PERl963YQh5UrGOT0NodynfHswkz8bUpaJW
FsowR/l9wXc=
-----END PUBLIC KEY-----

(no, I won't paste the private key here Smiley )

Anyway, I need a tool to check that this public key (assuming it is not mine, it's just an exemple) is indeed the one of the bitcoin address 1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt

For some reasons I can only do that in bash.

So I try this :

Code:
wget -O - http://blockexplorer.com/q/hashtoaddress/$(
bc_key 1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt ~/.bitcoin/wallet.dat |
openssl ec -pubout |
grep -v 'PUBLIC KEY' |
base64 -d |
openssl dgst -sha256 |
cut -d\  -f2 |
xxd -p -r |
openssl dgst -rmd160
)



However I try, I never manage to confirm the initial bitcoin address.


What do I get wrong ?
3091  Economy / Marketplace / Re: I'm selling Reloadable Visa Debit cards for Bitcoin. on: January 05, 2011, 05:15:20 PM
Yes they do. However, you will need to tell me if you plan on using them outside the US. There are two different cards I can buy, one for domestic purchases and one for use when traveling. If you are outside the US, I will send you the travel card. Also, I'm fill the cards with US dollars. The bank I'm getting them from charges 2% for converting currencies, and I'm sure they will likely not use the exchange rate most favorable to you.

Other than that, it's fine. Smiley

I am definitely interested.  However, I don't need it right now but at some point I will.

I hope you will maintain this offer when I need it.
3092  Economy / Marketplace / Re: I'm selling Reloadable Visa Debit cards for Bitcoin. on: January 05, 2011, 04:30:12 PM

Do those cards work outside of US ?  If you don't know, please tell us who is the issuer so that we can check on their website.
3093  Bitcoin / Project Development / Re: 100 BTC for a key extracting program on: January 05, 2011, 01:18:36 PM
I think I have what you want:

https://github.com/dirtyfilthy/bc_key

extracts private keys into PEM format. if this is satisfactory address for bounty is 12fEVjSwiBpLzGkgNyPNwjnHiqD3J2v96H

Ok just give me some time to analyse the code, because such a code reads my wallet so obviously I have to be carefull Smiley


PS.  Well, this looks perfectly fine, and I've tested it with success.

I kind of regret I put such a high price for a program that small, but I have only one word. 

Paiement is done :
13f9f65532c012ebcc5073fd670c9edc8c73ab449e5821150c0f4822c35ae33d
3094  Economy / Economics / Re: The AMERICAN DREAM film, animated, on youtube on: January 05, 2011, 03:55:10 AM
I like the tentacle-covered rothchild thing! Haha


Yeah I like the "Red shield" idea.  Pretty clever.
3095  Economy / Economics / Re: How Does Saving Bitcoin Lead to Capital Formation? on: January 05, 2011, 03:50:16 AM

Capital is made of means of production :  companies, tools, knowledge, machines,...

Bitcoin doesn't make capital, just as it doesn't make orange juice.  It only permits you to buy it.
3096  Economy / Economics / Re: The AMERICAN DREAM film, animated, on youtube on: January 05, 2011, 01:57:33 AM
I have only watched the few first minutes but I wanna be the first to say :

THIS KICKS ASS !!


PS.  I think this video is one of the best, along with the Hayek/Keynes rap.
3097  Bitcoin / Project Development / Re: Anonymous Internet Banking Project on: January 04, 2011, 10:57:21 PM
Haven't i heard this somewhere ?
What is the difference between this and loom ?

https://loom.cc/

Yeah right, I forgot about loom too.  Beat me.

Let's just say I want my own implementation Smiley

And I want it in bash.
3098  Bitcoin / Project Development / Re: Hold Sign "Stop the FED! Use Bitcoins!!!" Bitcoin Bounty! on: January 04, 2011, 07:19:26 PM

A short video would be better, in order to better evaluate how many people could have seen the sign, and during how long it was visible.

(a photo could have been shot in 1 sec and then the sign would have been removed).

3099  Bitcoin / Project Development / Re: Anonymous Internet Banking Project on: January 04, 2011, 04:31:08 PM
Don't worry, I had already pm'd you. I have installed 1.0.0c on the machine. Ubuntu 10.10 so you should be familiar.

I'm on IRC right now if you want to talk.
3100  Bitcoin / Project Development / Re: Anonymous Internet Banking Project on: January 04, 2011, 04:11:49 PM
I have sent you a pm about this project, it is something we can work together on, I have resources that I can use for this project. Anyone else that is interested (by contributing technical skills, resources such as computer or network, or with donations or "investments") pm me.

Yeah I'll definitely look into it.

It requires OpenSSL version 1.0.0, which is quite a high version number.  I'm on debian Sid and I only have version : 0.9.8o-4.

The 1.0.0c is on debian experimental, though.  I'll have to install it.
Pages: « 1 ... 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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!