Bitcoin Forum
May 05, 2024, 08:03:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 [47] 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 ... 112 »
921  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 27, 2011, 06:03:56 AM
I knew one girl in my life who was a stripper. I also knew one girl in my life who had herpes. They were one and the same.
922  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 27, 2011, 03:31:19 AM
Hackerspace party is sick. The hackerspace is holding a party and everyone came here. All night long Smiley
923  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 25, 2011, 05:52:28 PM
People keep asking me about conference videos:

/topic in #bitconconsultancy

"Conference videos: we've decided on high quality after conference videos vs low quality difficult-to-setup webcasts. Videos should be out during next few weeks."
924  Economy / Trading Discussion / Re: Scam Alert Mitchell Bourne and the European Bitcoin Conference on: November 25, 2011, 05:42:57 PM
Drama. OK, I'm a scammer too since I was involved in the conference also. Add me to your hit list.

kthxbai
925  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 25, 2011, 01:04:54 AM
If you'll be lurking around after the conference with me and slush then I wouldn't stress it. A conference is meant to be fun. It should be good. The hackerspace people are affable.
926  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 24, 2011, 09:00:42 PM
slush i'm at the hackerspace staying at prusnak's house. cya tomorrow

BTW i will be selling bitcoins since i need CZK. dont like to pay the scammy money changers.

i'll be in prague for a week hanging around the hackerspace. we're planning on doing a bunch of after conference events and workshops here.
927  Bitcoin / Bitcoin Discussion / Re: BITCOIN ON CNBC!!! on: November 23, 2011, 05:49:53 PM
Patrick Strateman = phantomcircuit. He's the CTO for Intersango and a member of Bitcoin Consultancy
928  Bitcoin / Bitcoin Discussion / Re: UK severs ties with Iranian Banks on: November 23, 2011, 05:20:29 PM
Iran's government is totally insane and universally hated within Iran. Nobody likes them.

However there are many conflicting forces within this corrupted government- it isn't a monolithic dictatorship. There is even limited dissent which has been continually pushing successfully over the last decades inch by inch to reform the country.

Going to war with Iran would be extremely bad. It would rally people around a hated, deeply unpopular and resented regime. I'm also skeptical about sanctions which is simply isolating and hurting Iranian people; the government is religious and doesn't give a shit about running the country to the ground in pursuit of their dogma.

For those interested in what day to day life in Iran is like, check my pictures:

http://www.flickr.com/photos/genjix/page10/
http://www.flickr.com/photos/genjix/page9/
http://www.flickr.com/photos/genjix/page8/

They are just normal people like you or me in the west. Before the religious people seized control during the power vacuum of the revolution (which was for democratic reform), Iran was a westernised secular country.



According to that map, Iran is less religious than Turkey or Poland. I'd harbour that the results are skewed from the repression even and that the results are much more favourable in private.
929  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 23, 2011, 04:55:55 PM
jim, I love you. That was a snappy heart-warmer that made me feel good about free software Smiley
930  Bitcoin / Meetups / Re: EUROPEAN BITCOIN CONFERENCE 2011, PRAGUE NOV 25-27 on: November 16, 2011, 05:24:47 PM
There hasn't been much hype for Bitcoin lately. Are there any interesting developments to be announced at this conference?

Yes.
931  Bitcoin / Wallet software / Re: libbitcoin on: November 16, 2011, 04:08:03 PM
That's cool Smiley But beware that they're a total experimental hack since I don't know what I'm doing when it comes to bindings.

If you need to ask me questions, I'm on Freenode IRC in #bitcoinconsultancy as genjix
932  Bitcoin / Development & Technical Discussion / Experimental Python bindings for libbitcoin on: November 16, 2011, 02:08:17 PM
I've made experimental alpha bindings for libbitcoin. Caveat emptor.

Program which connects to a bitcoin node and downloads the first 500 blocks.
Code:
from bitcoin import *
import time

net = network()
chandle = None

def receive_inv(inv_packet):
    print inv_packet
    for inventory in inv_packet.invs:
        print inventory.type, inventory.hash

def handle_send_getblocks(ec):
    if ec:
        # do something
        print ec

def create_getblocks_message():
    packet = getblocks()
    gen_block = genesis_block()
    print 'c'
    packet.locator_start_hashes.append(hash_block_header(gen_block))
    packet.hash_stop.nullify()
    return packet

def handle_handshake(ec, host_id):
    if ec:
        # do something
        print ec
        return
    chandle = host_id
    net.subscribe_inv(chandle, receive_inv)
    net.send_getblocks(chandle, create_getblocks_message(), handle_send_getblocks)

if __name__ == '__main__':
    handshake_connect(net, "localhost", 8333, handle_handshake)
    time.sleep(2)

Another hacked up example just to test everything:
Code:
from bitcoin import *
import time
i = net_addr()
i.ip_addr = [1, 2, 3]
print i.ip_addr
print inv_type.block
h = hash_digest([1, 2, 3])
h[12] = 110
print h[12]
vers = version()
vers.version = 100
vers.sub_version_num = "abc"
print vers
# from block 170
pubkey = data_chunk([0x04, 0x11, 0xdb, 0x93, 0xe1, 0xdc, 0xdb, 0x8a, 0x01, 0x6b, 0x49, 0x84, 0x0f, 0x8c, 0x53, 0xbc, 0x1e, 0xb6, 0x8a, 0x38, 0x2e, 0x97, 0xb1, 0x48, 0x2e, 0xca, 0xd7, 0xb1, 0x48, 0xa6, 0x90, 0x9a, 0x5c, 0xb2, 0xe0, 0xea, 0xdd, 0xfb, 0x84, 0xcc, 0xf9, 0x74, 0x44, 0x64, 0xf8, 0x2e, 0x16, 0x0b, 0xfa, 0x9b, 0x8b, 0x64, 0xf9, 0xd4, 0xc0, 0x3f, 0x99, 0x9b, 0x86, 0x43, 0xf6, 0x56, 0xb4, 0x12, 0xa3])
print len(pubkey)
print pubkey
print pubkey_to_address(pubkey)
print genesis_block().merkle
print 'Only', max_money(), 'bitcoins will ever exist'
print original_dialect()
s = script()
o = operation()
o.code = opcode.special
s.push_operation(o)
o.code = opcode.nop
o.data = data_chunk([0xde, 0xad, 0xbe, 0xef])
s.push_operation(o)
o = operation()
o.code = opcode.hash160
s.push_operation(o)
print s
tx = transaction()
print tx

n = network()

def foo(ec, hostid):
    if ec:
        print ec
    print 'connected', hostid

handshake_connect(n, "localhost", 8333, foo)

time.sleep(10)

I'm not too knowledgeable on making bindings, so consider this an experiment.

https://gitorious.org/libbitcoin/python-bitcoin

There's also subvertx command line utilities (proof of concept using libbitcoin) for those looking for some more general utilities.
933  Bitcoin / Wallet software / Re: libbitcoin on: November 16, 2011, 02:03:35 PM
Thanks both. We'll correct those things.

I've made experimental alpha bindings for libbitcoin. Caveat emptor.

Program which connects to a bitcoin node and downloads the first 500 block hashes.
Code:
from bitcoin import *
import time

net = network()
chandle = None

def receive_inv(inv_packet):
    print inv_packet
    for inventory in inv_packet.invs:
        print inventory.type, inventory.hash

def handle_send_getblocks(ec):
    if ec:
        # do something
        print ec

def create_getblocks_message():
    packet = getblocks()
    gen_block = genesis_block()
    print 'c'
    packet.locator_start_hashes.append(hash_block_header(gen_block))
    packet.hash_stop.nullify()
    return packet

def handle_handshake(ec, host_id):
    if ec:
        # do something
        print ec
        return
    chandle = host_id
    net.subscribe_inv(chandle, receive_inv)
    net.send_getblocks(chandle, create_getblocks_message(), handle_send_getblocks)

if __name__ == '__main__':
    handshake_connect(net, "localhost", 8333, handle_handshake)
    time.sleep(2)

Another hacked up example just to test everything:
Code:
from bitcoin import *
import time
i = net_addr()
i.ip_addr = [1, 2, 3]
print i.ip_addr
print inv_type.block
h = hash_digest([1, 2, 3])
h[12] = 110
print h[12]
vers = version()
vers.version = 100
vers.sub_version_num = "abc"
print vers
# from block 170
pubkey = data_chunk([0x04, 0x11, 0xdb, 0x93, 0xe1, 0xdc, 0xdb, 0x8a, 0x01, 0x6b, 0x49, 0x84, 0x0f, 0x8c, 0x53, 0xbc, 0x1e, 0xb6, 0x8a, 0x38, 0x2e, 0x97, 0xb1, 0x48, 0x2e, 0xca, 0xd7, 0xb1, 0x48, 0xa6, 0x90, 0x9a, 0x5c, 0xb2, 0xe0, 0xea, 0xdd, 0xfb, 0x84, 0xcc, 0xf9, 0x74, 0x44, 0x64, 0xf8, 0x2e, 0x16, 0x0b, 0xfa, 0x9b, 0x8b, 0x64, 0xf9, 0xd4, 0xc0, 0x3f, 0x99, 0x9b, 0x86, 0x43, 0xf6, 0x56, 0xb4, 0x12, 0xa3])
print len(pubkey)
print pubkey
print pubkey_to_address(pubkey)
print genesis_block().merkle
print 'Only', max_money(), 'bitcoins will ever exist'
print original_dialect()
s = script()
o = operation()
o.code = opcode.special
s.push_operation(o)
o.code = opcode.nop
o.data = data_chunk([0xde, 0xad, 0xbe, 0xef])
s.push_operation(o)
o = operation()
o.code = opcode.hash160
s.push_operation(o)
print s
tx = transaction()
print tx

n = network()

def foo(ec, hostid):
    if ec:
        print ec
    print 'connected', hostid

handshake_connect(n, "localhost", 8333, foo)

time.sleep(10)

I'm not too knowledgeable on making bindings, so consider this an experiment.

https://gitorious.org/libbitcoin/python-bitcoin
934  Bitcoin / Development & Technical Discussion / Re: Transaction Fee Clarifications on: November 10, 2011, 07:24:56 PM
Yeah don't pay fees. They're a fucking scam and totally not needed. We already have measures in place to stop flooding such as prioritisation of txs. This whole fee business is the mainline client trying to set network policy instead of the miners who run the hardware.
935  Bitcoin / Development & Technical Discussion / Re: Transaction Fee Clarifications on: November 10, 2011, 02:36:06 PM
You need to send it straight to a miner who is accepting no fee transactions. Your transaction didn't get propagated by the nodes who experienced it. Doesn't mean it can't get into the blockchain.
936  Bitcoin / Bitcoin Discussion / Re: Command line tool: offline transactions, download blockchain, privkey sign/verif on: November 10, 2011, 12:55:51 PM
This is really good stuff.

Would I be able to query the database and get unspent outs for an address ?

Yeah
937  Local / Other languages/locations / Re: Esperanto ! on: November 10, 2011, 12:08:49 AM
Sed mi timas ke la oficialeco de la angla kiel konferenca lingvo fortimigus ilin.

Plue, mi timas ke multaj esperantistoj estas tro 'maldekstraj' por shati la ideon de bitcoin (aux bitmono, mi ne estas certe pri kiel nomi gxin).

Mia sperto kun esperantistoj kaj bitmono kauxzas min pensi ke ili ne komprenas la grandan grandecon de kial bitmono gravegas. Ili rigardas gxin kiel lud-mono.

Jen mi konstruas ilojn por permesi multajn eblecojn kiel senkonekta spezado, duktigi (angle. piping) spezado al multaj sendoj, pezeta interfaco, duktigi spezojn pri retpartoj al unu bitcoind kaj io ajn aliaj ideoj, kiun vi pensas. Fidu la TTY.

- Elsxuti blokcxeno al SQL datumbazo.

- Demandi al SQL datumbazo trovi la saldo de bitmon-adreso.

- Krei novajn privatajn sxlosilojn.

- Skribi kaj legi kriptografie datumojn pre tiujn privatjn sxlosilojn.

- Preni bitmon-adreso de privatajn sxlosilojn.

- Krei kaj savi spezotajxo al dosiero, dukto, retparto, USB aux io aliaj.

- Sxargi kaj sendi spezadon al nodo de bitmono.

Ligilo por subvertx

Dankon, amikoj
938  Bitcoin / Bitcoin Discussion / Command line tool: offline transactions, download blockchain, privkey sign/verif on: November 09, 2011, 11:45:19 PM
I've built a bunch of tools that allow us all the whizz-bang toys like offline transactions, piping a transaction to multiple sends, a flyweight client, piping transactions over network shares to a single bitcoind and whatever guile schemes you can imagine. In shell we trust.

- Download blockchain into an SQL database.

- Query SQL database to find the balance of a bitcoin address.

- Create new private keys.

- Sign and verify data using those private keys.

- Get bitcoin address from private key.

- Create and save a transaction to a file, pipe, network share, USB stick, whatever.

- Load and send a transaction to a bitcoin node.

Link to subvertx
939  Bitcoin / Development & Technical Discussion / Re: subvertx command line utilities (proof of concept using libbitcoin) on: November 09, 2011, 10:35:55 PM
You don't copy paste though. You write to a file then read it in.

i.e

mktx send < /tmp/serialised-tx

And that file can just as easily be a named pipe (which are faster and not really files).

Or you can run it through a base64 decoder:

echo ... | openssl base64 -d | mktx send
940  Bitcoin / Development & Technical Discussion / Re: subvertx command line utilities (proof of concept using libbitcoin) on: November 09, 2011, 10:19:56 PM
Thanks for thinking of me, genjix Smiley  How do I put the serialized transaction into the stdin?  raw binary characters?  Would it be:

Code:
echo "<binary junk>" | mktx send

It's a tad easier if I can pass around hex instead.  On the other hand, I will probably just pick apart your code, adapt to my client, and integrate it into my codebase Smiley  Until then, I'll probably use it for experimenting until I get to that point.  Looks really good, thanks for releasing this!



OK!

But why do you need hex? Just use "openssl base64 ..." to base64 decode your stream and pipe it on.

Also I don't think you can use echo ..., you'd need to use cat to read until EOF. You can create a named pipe then open the mktx send with that pipe in bash.

Good intro to named pipes: http://www.linuxjournal.com/article/2156
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 [47] 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 ... 112 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!