Bitcoin Forum
May 07, 2024, 12:46:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 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 ... 195 »
2221  Bitcoin / Development & Technical Discussion / Re: Improving Offline Wallets (i.e. cold-storage) on: March 14, 2012, 06:00:37 PM
kjj,

Maybe you already know this, but just to clarify:  I already have a very serious offline mode.   Armory successfully implements offline wallets, but not quite the same way as was proposed in the thread you linked.  Instead of the offline computer creating and signing the transaction (which requires the blockchain), the online computer has a "watching-only wallet" and constructs the transaction for you (as well as generates addresses and verifies incoming payments for regular usage).  The unsigned tx is passed to the offline computer which doesn't even need the blockchain, it displays the tx data to the user who confirms+decrypts wallet+signs.  Then, it's transferred back and broadcast.  It doesn't use any kind of JSON interface, it's based on passing ASCII packets back and forth much like PGP ASCII-armored signature blocks.  And BIP 0010 was created so that if other clients implement it, you could have different clients online and offline and it will still work.  And none of it is sensitive, so there's no need to encrypt the data, or worry about wireless transmission.

Back to your idea:  I really like it, and I will look into the USB-serial-port adapters.  Maybe parallel ports, too (I'm seeing adapters for both).  If it's $20 to get this serial link established with no risk of arbitrary code execution, then it's a win!  As long as it's not too much work to get setup on different OS's -- I'll have to do some reasearch concerning the complexity of establishing serial links via USB adapters in Linux, Windows and Mac.   Ideally, each system would just see it as a native serial port and then it would just work... but I doubt it's ever that simple.

Anyone have experience sending bits over USB serial ports?  I envision that most old-laptops will have one, so many users would get away with just one adapter (online USB to offline serial).  But other users would need one for each:  one USB-to-Serial(M) and one USB-to-Serial(F).  Would these two setups have different charactistic (i.e. do I have to accommodate them separately in the code?)  I've never actually pushed data over serial/parallel ports, other than knowing it's a fairly simplistic interface.

For PC to PC communication, you use a null modem cable.  Over time, I think that the more common case will eventually be PC to device, which would use a standard straight serial cable.  More likely, the hardware wallet can emulate a serial port over bluetooth or USB.  The USB option would pose a risk to the computer, but in this model, it is the hardware wallet that needs to be protected, so we don't care.

The nice thing about USB to serial is that it usually presents at a high level so that you don't need to mess with the gory details of working with a 8250/16550 UART chip.  As long as the two ends agree on the speed and framing (19200, 8N1 is common), you can usually deal with it as just a character stream.

I don't know if USB to parallel adapters are really usable in bidirectional mode.  In theory, they should all support a clean 8 bit channel, and can even be chained to connect multiple devices, but in practice, parallel links tend to be hacked up 5 bit point to point systems using custom cables and abusing the printer status registers.

There are two ways to do offline wallets.  In one system, the offline wallet doesn't need any block data at all, and merely signs transactions presented to it.  In the other system, the wallet needs a tiny subset of the block chain, just the transactions it wants to redeem, but it creates the entire transaction internally and signs it.

I prefer the second system, so that the wallet can't be tricked into signing a transaction that it doesn't understand.  But it means that the wallet must accept block data that it cannot confirm.  This doesn't seem to be too big of a problem, since the transactions would be sent either by the point of sale terminal that wants to get paid, or from the user's semi-trusted home computer.  The worst that an attacker could do would be to trick the wallet into creating an invalid transaction.

As to the format of communication between the two devices, I prefer JSON because it is so simple.  ASCII armor is more suitable if you are passing files around and need them to be portable across a bunch of different systems.  But if you have a live communication link, it doesn't seem ideal.
2222  Bitcoin / Development & Technical Discussion / Re: Improving Offline Wallets (i.e. cold-storage) on: March 14, 2012, 03:19:56 PM
  • Serial Ports:  
     + Should transfer bits very efficiently without code execution risk
     + I believe that it could be coded cross-platform easily
     - Most newer systems do not have serial ports

Don't write off serial just yet.  While new computers don't come with serial ports, thanks to USB, you can add a port to just about anything for like $10.  And two of the other things you listed, bluetooth and infrared, are just virtual serial ports.

Way back in June, I wrote up a plan to give the standard client the features that would be needed to let users detach their wallet nodes from their network nodes.  I saw it as the first step towards having small dedicated hardware wallets.

If you are planning to do a serious offline mode, you might want to take a look.
2223  Bitcoin / Development & Technical Discussion / Re: [Paid] [Bounty: 10 BTC] Bitcoind build instructions for Centos x86 and x64 on: March 14, 2012, 03:00:18 PM
I tried that script and I get this error:

Quote
g++ -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/root/Bitcoin/Libraries/bitcoin-master/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -I"/home/root/Bitcoin/Deps/include" -static -o bitcoind obj/checkpoints.o obj/netbase.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/script.o obj/util.o obj/wallet.o   -Wl,-Bstatic -mtl /home/root/Bitcoin/Deps/lib/libboost_system.a -mtl /home/root/Bitcoin/Deps/lib/libboost_filesystem.a -mtl /home/root/Bitcoin/Deps/lib/libboost_program_options.a -mtl /home/root/Bitcoin/Deps/lib/libboost_thread.a /home/root/Bitcoin/Deps/lib/libdb_cxx.a -mtl /home/root/Bitcoin/Deps/lib/libssl.a -mtl /home/root/Bitcoin/Deps/lib/libcrypto.a -lgcc -Wl,-Bstatic -l z -l dl -l pthread
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [bitcoind] Error 1

What is this z library, why isn't it installed, and where can I get it?

It is a very common compression library.  You should be able to install it with:

Code:
yum install zlib
2224  Bitcoin / Mining software (miners) / Re: p2pcoin - a self contained p2pool node - boots from CD, USB or network on: March 12, 2012, 08:18:01 PM
This is a fantastic idea! Well done sir! I think i'll start using it soon myself Smiley Probably on a HDD rather than a USB stick though..

One thing I would say is please change the name! When I clicked on this I was expecting to see another crazy alt-coin!

Because of the network provisioning, I get the best results with PXE booting and RAM drive.  No storage in my nodes at all.

Any suggestions for a new name?  I wanted to keep it similar to linuxcoin out of respect for Drgr33n's base that I built on, but clearly indicate that it uses p2pool.

With a fleet of rigs, I feel like BAMT is a better choice.  Running a p2pool node on every one of your miners is unnecessary.

Yeah, probably unnecessary.  But it takes no more effort to do.
Until updates come around.

Updates are super easy.  Just burn a new CD, write a new flash drive, or replace your PXE image, then reboot fully.
2225  Bitcoin / Mining software (miners) / Re: p2pcoin - a self contained p2pool node - boots from CD, USB or network on: March 12, 2012, 08:11:44 PM
0.2 torrent file is missing, fix link please so i can add it to my share machine Cheesy

Fixed.  Not sure how my script missed that.  Thanks for pointing it out.
2226  Bitcoin / Bitcoin Discussion / Re: Dynamic Defensive Hashing for the Bitcoin Network on: March 12, 2012, 05:15:06 PM
The offline 51% (or really 101%) attack problem is preventable if we want it to be.  No insurance companies or outside complications needed.
2227  Bitcoin / Bitcoin Discussion / Re: [If tx limit is removed] Disturbingly low future difficulty equilibrium on: March 12, 2012, 11:20:34 AM

Wait a second.  You think that the monopoly miner will be able to leave most of their hashing power offline, as a fleet-in-being?  Won't that just make the scaling effects worse?

Are you describing the increasing-returns to scale as the scaling problem? If so, then yes it makes the scaling problem worse.

No, I'm talking about the increasing-overhead to scale problem.  Or, at least the apparent overhead.

The bigger your mining operation is, the harder it is to ignore your overhead.  A couple hundred megahashes per second requires no infrastructure, since it is just a video card or two that you already own, and a small fraction of your monthly power and network bills.  A couple of terahashes per second is going to need its own building(s) with dedicated generators and multiple internet connections.
2228  Bitcoin / Pools / Re: [320GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool on: March 12, 2012, 11:08:36 AM
Oh, I would absolutely love a single package/installer/binary which installs/runs everything to start p2poolmining! And yes, the current approach with python, modules, p2pool, bitcoind, blockchain and sharechain seems too complicated to pack into one block.. So yes, I see your point in a complete redesign. I dont know enough about the inner workings of all that (monolithic? libraries? dynamic linking?) to decide for or against c, python, modular, monolithic etc.

However I would, at this point, prefer to not integrate p2pool into satoshi client. Maybe integrate a bitcoin client/daemon into p2pool, but the default should be two independent programs.
The current events with rc1, rc2, mandatory updates in quick order and many unstable or not working combinations give me a bad feeling about merging the two to a single, standard client..

What would be the way to make a new, better p2pool version? One program which has everything included (graphs, dependencies)? It wouldnt make a big difference if its C or python then. There is that python-to-exe version too, for windows, apparently?

People would still need bitcoind (if you dont integrate that). People still need a miner (if you dont integrate that). People still need the radeon "runtime". It sounds like a gigantic project to deliver an all-in-one download-doubleclick-mine solution..

Ente

Ahem...
2229  Bitcoin / Development & Technical Discussion / Re: Date for 25 BTC per Block on: March 11, 2012, 10:31:42 PM
The moves in the chart over the past days don't appear they can easily be explained as variance.  

Previously Bitcoin hadn't seen the situation where the exchange rate was stable but the but mining difficulty swung one way or another to this degree -- and not like this -- huge dip followed immediately by a huge spike.  Something's coming down the pike.

FPGAs are attractive due to lower power required -- the megahash/Joule (Mhash/J) is an order of magnitude greater than that with ATI GPUs:
 - https://en.bitcoin.it/wiki/Mining_hardware_comparison#FPGA_Devices

Maybe production of FPGAs is going to start having a significant impact on the difficulty?

That would push the date to occcur earlier than December 9th.



 - http://bitcoin.sipa.be/growth-10k.png

The red line and the green line are noise.  Even the blue line is sketchy.
2230  Bitcoin / Bitcoin Discussion / Re: [If tx limit is removed] Disturbingly low future difficulty equilibrium on: March 11, 2012, 10:28:02 PM
The monopolist will have lower marginal costs because most of its hashing capacity could remain idle. Fees could go up or down. I think they would go down because the marginal cost savings are potentially extremely large, but it is an empirical question. Remember that implicit fees are currently outrageously high. Low fees should not to be a talking point when so much new money is being issued.

Wait a second.  You think that the monopoly miner will be able to leave most of their hashing power offline, as a fleet-in-being?  Won't that just make the scaling effects worse?
2231  Economy / Marketplace / Re: The Armory - Weapon Marketplace on: March 11, 2012, 12:37:08 PM
Handguns don't prevent crimes.

Now that is a lie.

Nice talking to you. I think I'll start carrying two pistols now.  Wink

They don't. If someone pulls a gun on you, you will be dead before you'll get yours out.

You can't just repeat your unfounded statement and expect anyone to believe it.  Adding a stupid hypothetical isn't enough either.

If you want someone to believe you, you are going to need to examine the huge piles of data that clearly show the exact opposite of what you are saying, and you need to point out how all of it is wrong.

Good luck with that.
2232  Bitcoin / Mining / Re: I think this may be a step in the right direction on: March 11, 2012, 12:32:58 PM
Because all of the commercial SHA chips are designed for an operation that doesn't apply to bitcoin mining.

Bitcoin mining is done by hashing huge numbers of distinct two-block inputs.  SHA chips are designed to do small numbers of many-block inputs.

Think of the difference between a billion files of 1000 bytes each, and a thousand files of a billion bytes each.
2233  Bitcoin / Project Development / Re: LinuxCoin A lightweight Debian based OS with everything ready to go. on: March 09, 2012, 08:00:53 PM
It hasn't been updated in 8 months.
The author has not made the source code available and has refused any request to do so.

That is disappointing as it looks like a promising dedicated light mining OS.

Are there any alternative Linux OSes that have the Bitcoin client and/or miners natively installed?

If you are interested in p2pool mining, I've hacked up a version of linuxcoin for that.  I call it p2pcoin, for lack of a better name.  I think BAMT is also a dedicated mining distribution, but I don't know much about it.
2234  Bitcoin / Pools / Re: [320GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool on: March 09, 2012, 05:16:08 PM
I restarted cgminer as well. It seems cgminer won't even connect to p2pool. cgminer is using my backup pool instead.

The p2pool log only contains these errors it seems: http://pastebin.com/uCEdHzvu

Go back a few pages.  This is a known problem with bitcoind 0.6.0rc1.  You need to either upgrade to rc2, or add a -paytoscripthashtime option to your config file or command line.
2235  Bitcoin / Bitcoin Discussion / Re: Bitcoin & Tragedy of the Commons on: March 09, 2012, 04:20:15 PM

Attractive is not a sufficient condition.  You also need to have a mechanism whereby the monopoly/oligopoly seekers are able to bar entry into the field.

By rejecting any new blocks generated by anyone else.

Ok, that will work after they've achieved majority, as long as they hold majority, but will not help them become the majority.

The other mechanism is simply the competitive market mechanism. The monopolist would be willing to mine at a loss temporarily in order to achieve dominance. Other miners who are not trying for monopoly would not be willing to mine at a loss. This would help clear the field for a successful takeover. That is the actual amount of hashing power you need to achieve 51% is far less than the hashing power currently at work.

Competition does not help in winner take all games like this. The equilibrium is always one winner. Everyone else gives up.

Mine at a loss?  I thought that was what we were all doing already.
2236  Bitcoin / Mining / Re: Wonder who this solominer is? 88.6.216.9 on: March 09, 2012, 04:13:27 PM
Every three days (roughly) is rare to you?  I don't think you'll find many people to agree with that.  And it is only unpredictable if you need it to happen on a specific block.  If you don't care which block it happens on, then you just need to wait a bit.

The forks that would happen under this plan would be essentially identical to the forks that happen now, and they would be resolved in the same way, and in roughly the same amount of time.

P.S.  Your "flood the network with transactions" attack only works in a world without clocks.  In a world with clocks, like the one we live in, we can keep a count of how many valid transactions were visible X seconds ago, where X is greater than roughly double the mean latency of the network.  30 would be a good value for X.

Bitcoin doesn't use clocks specifically because it is non deterministic.  By timing the 30 second threshold you could cause some nodes to see the next block as invalid and some to see it as valid.

And yes 3 days is utterly meaningless.  1 block out of 700+ is rare by any standard.  Someone wins the lottery every week thus it is pretty common to win the lottery right?

Still go ahead and fork the blockchain because that is the only way such a reckless and useless proposal sees the light of day.

If we want to keep abusing the lottery analogy, I should point out that every single node on the entire network "wins" about once a week, just not all at the same time.

I had typed up a lengthy reply last night, but I paused to consider what you have said on the subject, and then I slept on it.

My conclusion is that you haven't actually read, or at least not understood, a thing that I've said.  I have two reasons for thinking that.

First, you have completely misunderstood the problem.  See here for example.  Important part quoted below.

The protocol is fine and shouldn't be complicated because people are sad their FREE transactions aren't included in the next block.  If you want to influence the network stop being cheap and RAISE THE FEES.  More fees = more incentive not to mine empty blocks.  Currently all fines combined are less than 0.08% of block revenue.  There is no real economic incentive to include transactions.

TL/DR:
"WHAH.  My free transactions are talking too long.   I want faster free stuff".

And second, you have completely ignored the parts of my posts where I explain the mechanism to be used by nodes to resolve their temporary, local conflicts.  Example here.

Let me be very clear.  I propose that:
1. nodes temporarily reject blocks that they can identify as antisocial.  Nodes already temporarily reject blocks, but for different reasons.
2. nodes have a method whereby a block that was temporarily rejected can become accepted.  Again, nodes already do this.

Further, I assert that:
1. these will not lead to permanent or even long-lived chain forks, for exactly the same reason that the ordinary chain forks that we get about once a week are not permanent, and can't become permanent.
2. any method used to game the system to create blocks that include only dummy transactions created by the attacker to circumvent rejection will necessarily require more effort than simply doing the right thing (including ordinary transactions), giving the current antisocial miner(s) a strong incentive to become a positive part of the network.
2237  Bitcoin / Bitcoin Discussion / Re: Bitcoin & Tragedy of the Commons on: March 09, 2012, 03:54:31 PM

Attractive is not a sufficient condition.  You also need to have a mechanism whereby the monopoly/oligopoly seekers are able to bar entry into the field.

By rejecting any new blocks generated by anyone else.

Ok, that will work after they've achieved majority, as long as they hold majority, but will not help them become the majority.
2238  Bitcoin / Bitcoin Discussion / Re: Stanford paper evaluating bitcoin on: March 09, 2012, 03:47:14 PM
When will this hoarding fallacy die?

In essence it says "People will hoard bitcoins because they will always go up in value.  Hence they won't be used; hence they won't go up in value.... DOOM".

It's a circular argument.  If they aren't going up in value, then people won't hoard them, so they will spend them.  So they'll go up in value.  So people will hoard them.  So they won't go up in value.  So people will spend them....

As with all economics, the two sides will create two pressures.  The magic of the market means those two pressures will compete until a balance is found -- at a particular price.

Jeez, it's a supply and demand curve.  Isn't that pre-university economics?

If I could decree that everyone had to have a firm understanding of just one concept before getting out of high school, it would be the dynamic equilibrium.  You can hardly swing a cat without hitting dozens of things that appear to be static, but are actually just metastable points in the interaction of two opposing forces that feed back on one another.

A failure to understand this concept is responsible for the difficulty people have with understanding market processes, leading them to extrapolate things that ought not be extrapolated, and then to make economic claims that they ought not make.

If anyone reading this thread doesn't understand what realnowhereman posted above, please, I beg you, go to wikipedia and read about evaporation and precipitation until you understand the common process and can see it in everything around you.
2239  Bitcoin / Bitcoin Discussion / Re: Bitcoin & Tragedy of the Commons on: March 09, 2012, 03:38:43 PM
Ignore the security/public good issue for a moment and focus on the issue of whether or not a monopoly is likely to emerge. 

Accumulating 51% of hashing power is profitable. With currency generation, a 51% mining monopoly produces almost doubles the number bitcoin per unit of hashing power. With txn fees, a 51% mining monopoly will more than double the number of fees per unit of hashing power (there are both price and quantity effects rather than just qty effects).

How will assurance contracts make monopoly less attractive?

Attractive is not a sufficient condition.  You also need to have a mechanism whereby the monopoly/oligopoly seekers are able to bar entry into the field.
2240  Bitcoin / Mining / Re: Wonder who this solominer is? 88.6.216.9 on: March 08, 2012, 09:29:00 PM
Every three days (roughly) is rare to you?  I don't think you'll find many people to agree with that.  And it is only unpredictable if you need it to happen on a specific block.  If you don't care which block it happens on, then you just need to wait a bit.

The forks that would happen under this plan would be essentially identical to the forks that happen now, and they would be resolved in the same way, and in roughly the same amount of time.

P.S.  Your "flood the network with transactions" attack only works in a world without clocks.  In a world with clocks, like the one we live in, we can keep a count of how many valid transactions were visible X seconds ago, where X is greater than roughly double the mean latency of the network.  30 would be a good value for X.
Pages: « 1 ... 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 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 ... 195 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!