Bitcoin Forum
May 09, 2024, 12:07:12 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 »
381  Bitcoin / Development & Technical Discussion / Re: Message to devs from merchant on: October 15, 2014, 12:11:32 AM
You guys say that hard drives are cheap but you still have to scan the block chain at first. It takes a very long time to do but is the only trust less solution, isn't it?

Yes, today. But not at some point in the future. Please read about "UTXO commitments" in https://bitcoinfoundation.org/2014/10/a-scalability-roadmap/


It's good to know there is a plan out there to have ultra pruned tree verification. The hashes you mentioned are going to incorporated in Merkle trees? I thought that the Bloom filter mechanism was going to be extended to skip over used tx.

In any case, would it be compatible with deterministic wallets? Without the used txs, they will stop scanning for addresses too early.
382  Bitcoin / Bitcoin Discussion / Re: Why blockchains might want to consider using AT "Turing complete" txs on: October 14, 2014, 10:29:42 AM
Who is hosting the AT?
383  Bitcoin / Development & Technical Discussion / Re: Message to devs from merchant on: October 14, 2014, 09:08:33 AM
You guys say that hard drives are cheap but you still have to scan the block chain at first. It takes a very long time to do but is the only trust less solution, isn't it?

As a merchant, the only way I see things going is to keep the block chain whatever its size becomes, and sync.

It would be good if there was a way to drop the used transactions from the requirement. Last time I checked, there was 27 gb of block data but less than 1 gb worth of active tx.
384  Bitcoin / Development & Technical Discussion / Re: Looking into forking the core wallet to use parallel computing to verify blocks on: October 14, 2014, 08:54:55 AM
It's an old video card and there are a few improvements that I can see. It's a baseline.
L
385  Bitcoin / Development & Technical Discussion / Re: Looking into forking the core wallet to use parallel computing to verify blocks on: October 13, 2014, 06:43:45 AM
I made an openCL version of sipa's secp256k1 library. It's on github if someone is interested. It executes faster but only after you throw hundred of thousands of signatures to verify.
On a sample test run
# of sigs = 262144

Times in ms per phase.

prepare -> 2518
compute -> 15201
check   -> 35
total   -> 17755
           0.067733

Phase 1 & 3 are on CPU. Phase 2 is on GPU. 0.067733 ms per verification.
I have a GTX 560 Ti.
386  Bitcoin / Development & Technical Discussion / Re: Looking into forking the core wallet to use parallel computing to verify blocks on: October 12, 2014, 04:38:21 AM
Do you have recommendations?

My current thinking is that the best bang for the buck is parallalizing the two group multiplications (by G and Q).
They use the field doubling and multiplication that were optimized in asm and they must be put on the device.
The rest that uses GMP isn't very much. It's a modular inverse and a few mult/add. It barely registers on my execution profile.

Thanks
387  Bitcoin / Development & Technical Discussion / Re: Non-standard transactions. Not only Eliguis on: October 08, 2014, 07:45:36 AM
Let me rephrase.
If a miner refuses to include a non standard tx, it's not too bad. The transaction will not confirm and the money stays in the original address.
With a pay 2 hash script, the miner can't tell if the transaction is standard or not and will include it. Now the money is transferred. If they refuse to accept a non standard redeem script, it will be stuck there.

May be it is an acceptable behavior but I understand that they mine non standard tx in this case.
388  Bitcoin / Development & Technical Discussion / Re: Non-standard transactions. Not only Eliguis on: October 08, 2014, 07:23:26 AM
Wouldn't you be unhappy if it is ok to send money to these address but impossible to spend because the script is non standard?
389  Bitcoin / Development & Technical Discussion / Re: Non-standard transactions. Not only Eliguis on: October 08, 2014, 06:52:51 AM
They are pay 2 script hash. One can't tell is they are standard before they are redeemed.
390  Alternate cryptocurrencies / Altcoin Discussion / Re: Block chain revival / recovery project on: October 07, 2014, 05:29:25 AM
While I think that for the most part a country wide network split is unlikely to go undetected, I see two possible scenarios:
- A long lasting split. In this case, the smaller side has ample signs that it has become the orphan branch. Further transactions should be carried out considering the risk that they will become unconfirmed when the merge occurs.
- A movie scenario, where a hacker isolates a significant entity without them being aware of the situation in time for him to do his double spend.

Both are far fetched. Back to the original topic, the OP doesn't have to worry about the loss of the blockchain as it is already kept redundantly by thousand of nodes. If these all go away, it would be because Bitcoin has ceased to exist.
 
391  Alternate cryptocurrencies / Altcoin Discussion / Re: Block chain revival / recovery project on: October 07, 2014, 01:39:53 AM
Users and miners in each region will continue to work without being aware of being isolated from each other.

This is incorrect. It would become quickly obvious that something significant had happened, since the average block time would double to 20 minutes (if the hash power split exactly in half).  If only a small portion of the hash power were isolated, then anyone on the isolated portion would likely see their average block time increase significantly.
That's a good point. It's statistical though and using it as a programmatical way to determine a split would be wrong.
I suppose we need to frame the context of this scenario. There is a network split and no human decision can be taken while this happens. Highly improbable but otherwise we couldn't have such a split happening in the first place. Maybe a more probable scenario is if there is a bug that introduces a different behavior for half of the nodes.

We would have two versions of the blockchain - which for all matter and purposes - are both valid.

According to the protocol the longer one (the one with more total work) would be the valid one.  Anyone communicating on the isolated network with less hash power would have the "invalid" blockchain.  As long as they are aware of this, they can treat any transactions that they send or receive as unconfirmed until the network isolation has ended.
Yes - but they are not allowed to communicate.

All the transactions that happened in the orphan chain will be considered invalid causing loss to the merchants that sold goods.

This is incorrect.  The transactions that happened in the orphan chain will be considered unconfirmed.  It is extremely likely that they will confirm in the future blocks on the correct blockchain.  It is only if someone manages to accomplish a double spend on the "valid" blockchain while the network is split that some transactions from the isolated netowrk may become "invalid".  This would be difficult to accomplish since the attacker will be stuck on the isolated network.
Right. I forgot that orphaned transactions simply return to the mem pool.

Not to mention that double spends can happen at will in this scenario if someone has a connection to both networks.

If it is possible to connect to both networks, then it is possible to relay blocks between bloth networks.  Therefore, there won't be a split blockchain.
It could be possible for a mischievous person whereas the common person is unprepared especially if this is the result of a deliberate attack.

In conclusion, the current design of Bitcoin does not cover the scenario of an Internet split.

It would handle it reasonably well. Probably a lot better than many other global financial and communications services.
Hard to say. There are human factors to consider too.

It goes beyond the need to recover a blockchain.

In what way?
You would need to cherry pick the double spends.

There would be no good blockchain

Yes there would.
From a definition point of view, the longest chain is the good one. But this is still unpleasant to the victims of the double spends.

and recovering would require manually stitching the blockchain together.

No, it wouldn't.  Such a thing isn't even possible with a proof-of-work system.  
The system actually does it automatically by rerolling orphaned transactions. The manual part would be the result of customer complaints. People who are not happy with the result will call their merchants.

Is this what you want to tackle?

I hope not, because this would be a waste of time.

Note that Satoshi already answered most of this back in July 2010:

It's hard to imagine the Internet getting segmented airtight.  It would have to be a country deliberately and totally cutting itself off from the rest of the world.

Any node with access to both sides would automatically flow the block chain over, such as someone getting around the blockade with a dial-up modem or sat-phone.  It would only take one node to do it.  Anyone who wants to keep doing business would be motivated.

If the network is segmented and then recombines, any transactions in the shorter fork that were not also in the longer fork are released into the transaction pool again and are eligible to get into future blocks.  Their number of confirmations would start over.

If anyone took advantage of the segmentation to double-spend, such that there are different spends of the same money on each side, then the double-spends in the shorter fork lose out and go to 0/unconfirmed and stay that way.

It wouldn't be easy to take advantage of the segmentation to double-spend.  If it's impossible to communicate from one side to the other, how are you going to put a spend on each side?  If there is a way, then probably someone else is also using it to flow the block chain over.

You would usually know whether you're in the smaller segment.  For example, if your country cuts itself off from the rest of the world, the rest of the world is the larger segment.  If you're in the smaller segment, you should assume nothing is confirmed.

I don't see why it is so hard to do a double spend though. You don't have to be connected to both network. You need to know people who are and then ask them to broadcast the transaction for you.
392  Alternate cryptocurrencies / Altcoin Discussion / Re: Block chain revival / recovery project on: October 06, 2014, 06:33:50 PM
I would like to hear your take on what would happen if the Internet was broken down to, say, 3-10 pieces that would not be able to talk to each other for even just a week.

Decentralized systems are very sensitive to network splits even for short duration of time. Let's say the Internet is split into two zones for a day. Users and miners in each region will continue to work without being aware of being isolated from each other. We would have two versions of the blockchain - which for all matter and purposes - are both valid.
It is called a split brain. http://en.wikipedia.org/wiki/Split-brain_(computing)

When the Internet recovers, the blockchain with the longest difficulty will prevail, making the other one orphan. All the transactions that happened in the orphan chain will be considered invalid causing loss to the merchants that sold goods.
Not to mention that double spends can happen at will in this scenario if someone has a connection to both networks.

In conclusion, the current design of Bitcoin does not cover the scenario of an Internet split. It goes beyond the need to recover a blockchain. There would be no good blockchain and recovering would require manually stitching the blockchain together. Is this what you want to tackle?
393  Bitcoin / Development & Technical Discussion / Re: Why are DER-encoded signatures for p2pkh differing in size? on: October 06, 2014, 08:38:03 AM
This transaction https://blockchain.info/tx/251d9cc59d1fc23b0ec6e62aff6106f1890bf9ed4eb0b7df70319d3e555f4fd2
has a messed up DER encoding too.

3044022090f7346fa0f6a4dc4b31300bf93be229001a1104532829644e07f45814bb734e0220579da5a14362f 46bfd7c2be0d19c67caedc812147b9b8d574e34a3932cf21f7a01

It's definitively not consistent.
394  Bitcoin / Development & Technical Discussion / Re: Why are DER-encoded signatures for p2pkh differing in size? on: October 04, 2014, 05:10:25 PM
It wouldn't but it would break using standard crypto libraries. Bitcoin isn't consistent in this area though. Most likely the result of legacy.
395  Bitcoin / Development & Technical Discussion / Re: Why are DER-encoded signatures for p2pkh differing in size? on: October 04, 2014, 04:42:10 PM
There is an extra leading byte of 00 to indicate the sign. Without it, the number r or s would be treated as negative because its most significant bit is 1.
396  Bitcoin / Bitcoin Technical Support / Re: Problem: transactions would not confirmed for days! on: October 04, 2014, 10:27:52 AM
Your unconfirmed transactions have a non standard input. Did you create them manually? If so, what is the raw transaction?
It was not propagated beyond blockchain.info and is not in the mining pool.
397  Bitcoin / Bitcoin Technical Support / Re: bitcoin-qt huge blocks file on: October 03, 2014, 12:16:11 PM
The blockchain is now over 25 GB.  This seems crazy.

I need to run bitcoin on a Linux server in order to process transactions, but I have to increase the size of my server from my hosting company, just because the blockchain keeps growing.  This means over time, I will have to continue to pay more for hosting.

Isn't there any way that the core team can re-architect the blockchain so that only the most recent 10-20% of blocks need to be stored, and enable us to delete the oldest 80-90% of blocks?

Yes it's possible. It has been discussed as an improvement for a long while. It's not implemented.
The blockchain is 27 gb. The active part is less than 800 mb.

I am working on a thin client that would use a configurable amount of space
398  Bitcoin / Development & Technical Discussion / Re: Statistical analysis of Bitcoin public key distribution on: October 02, 2014, 04:21:02 PM
Quote
Private keys are intended to be one-to-one with public keys, so that would certainly be a flaw in ECDSA if two private keys correspond to one public key
It will be flaw in basic arithmetic, not in ECDSA.
X * 7 = 28
How many values of X do you know? Two? Give me both, please!
Elliptic curve mathematics is much more complicated than this. Besides, there are technically multiple values because the EC forms a cyclic group but we choose the normalized value. anyway Why the sarcastic comment?
399  Bitcoin / Bitcoin Discussion / Re: Selfish mining theory on: October 02, 2014, 04:03:38 PM
It doesn't matter. When you merge back, it is the cumulative difficulty that counts for the longest chain.
Basically you are proving work, not your ability to create blocks.
400  Bitcoin / Development & Technical Discussion / Re: Statistical analysis of Bitcoin public key distribution on: October 02, 2014, 03:51:30 PM
1. The hash function maps billions of 256 bits input to the same value.  It's just that it's not computably easy to find a collision.
2. Bitcoin verifies that you can spend from an output by checking that the public key that you provide has the same hash the address and that you have the private key.
In other words, when the money was sent out, only the hash was given. To claim the money, you show the public key.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!