Re: secp256k1
ByteCoin's reply in BitcoinTalk topic 2699.
probed Bitcoin's weak points in 2010, from block timing to a mining cartel

On July 17, 2010, a little over forty minutes after joining BitcoinTalk, ByteCoin opened a thread titled “Get rid of ‘difficulty’ and maintain a constant rate.” A sudden rush of new miners had sped up block generation. The difficulty would rise and slow it down again, ByteCoin reasoned, but by then the newcomers would be discouraged and leave, and a stretch of very slow blocks would follow.
The alternative went like this. Just before ten minutes were up, each mining computer would broadcast the block with the lowest hash it had found. The others would broadcast theirs only if it had a lower hash still. At the ten-minute mark the lowest one would be taken to continue the chain, and blocks would arrive at fixed intervals. Two days later ByteCoin pointed to one block whose transactions were confirmed in under three minutes and another that took over two hours. If merchants could not tell customers how long they would have to wait for their goods, ByteCoin wrote, that would be a major barrier to adoption.
Four days later ByteCoin started a second thread, “With “Balance sheets” most of the block chain can be forgotten.” Working out a balance does not require the details of transactions from a year ago. Make a “balance sheet” listing every public key with a positive balance and the amount, and put its hash into the next block. A new client could then fetch only the current balance sheet and the most recent blocks, undo the transactions, and check that the hashes matched. Clients could also delete old blocks and free the disk space.
The proposals came up in other people’s threads as well. In August ByteCoin pointed gebler, who had laid out how the difficulty adjustment could backfire, to the fixed-interval scheme. gebler answered that it would solve the problem, but would change the system too much.
On August 15 ByteCoin proposed a way to keep the recipient and the amount secret until the recipient spent the money. The sender would include in the transaction a message stating the amount, encrypted with the recipient’s public key. Every node would try to decrypt it with its own keys, and only the node that succeeded would know the payment was its own. The same day, in another thread, ByteCoin wrote that someone else’s anonymity proposal could only go so far, because the network has to be able to check that no one is spending someone else’s coins.
In October, someone suggested letting short messages travel with transactions. Satoshi Nakamoto objected:
SNSatoshi Nakamoto (BitcoinTalk post, October 23, 2010, 7:02:57 PM UTC)It would be unwise to have permanently recorded plaintext messages for everyone to see. It would be an accident waiting to happen.
The next day ByteCoin asked what harm he expected, and wrote that something similar was already possible. Part of every ECDSA signature comes from a random number. Once the private key is revealed, anyone can recover that number with a little algebra. So someone could hide data in the signatures of ordinary transactions for days or months, then reveal the key and make all of it readable at once.
On November 8 ByteCoin opened a thread titled “‘wallet’ handling code should be a separate process.” In the current client, a single process takes in data from anywhere on the network, processes it in complicated ways, and has the private keys within reach. One buffer overflow, and a remote attacker could steal your bitcoins. The private keys should be handled by a separate process that accepted only two commands: sign a message, and add a new key.
That same month, in a thread about flooding the test network with transactions, ByteCoin and Satoshi went back and forth on when a wallet should spend its older, higher-priority coins and when it should save them. When ByteCoin wrote that priority could still be gamed, Satoshi answered that there was a wide enough difference between normal users and flooders.
On November 15 ByteCoin asked for OP_BLOCKNUMBER, which would let a script use the current block number. With it, a payment could return to the sender if the recipient had not spent it by a given block, so coins sent to someone who had wiped their wallet would not be lost forever. Satoshi said no the same day:
SNSatoshi Nakamoto (BitcoinTalk post, November 15, 2010, 6:37:44 PM UTC)We can’t safely do OP_BLOCKNUMBER.
If the network split and the chain was later reorganized, a transaction might end up in a later block, and the OP_BLOCKNUMBER transaction and everything that depended on it would become invalid. Three days later ByteCoin argued back. Fraud through a network split was already possible. An attacker with clients around the world, on noticing the split, could send coins to himself on the larger side and spend the same coins on goods on the smaller side. Once the network rejoined, the smaller side’s transactions would disappear. OP_BLOCKNUMBER added no new risk, ByteCoin wrote; what was needed was some way to detect that mining power had gone missing. No answer from Satoshi survives in the archive.
On December 12, RHorning started a thread called “Mining cartel attack.” Could a group of miners with less than half the computing power shut other miners out by recognizing only one another’s blocks?
Two days later ByteCoin took it a step further. Cartel miners would share newly found blocks only with one another and, without publishing them, mine the next block on top. When an outside miner found a block, the cartel would release its hidden blocks to override it. If the cartel was two or more blocks ahead, its chain would be longer and the outsider’s work would be wasted. Those who thought honest mining paid better, ByteCoin wrote, were forgetting what the cartel gained by punishing everyone else.
Withholding blocks so that other miners’ work goes to waste was named selfish mining and became the subject of a paper in 2013.
In less than six months ByteCoin wrote up weak points across the system: block timing, the size of the block chain, hiding the recipient, where private keys live, a script command for counting blocks, and collusion among miners. Satoshi answered some of these posts. For others, no answer survives.




24 entries / 4 threads
ByteCoin's reply in BitcoinTalk topic 2699.
ByteCoin proposes isolating private key operations in a separate process that accepts only two commands.
ByteCoin proposes replacing difficulty adjustments with a method intended to keep block generation at a constant rate.
ByteCoin proposes recording each balance sheet hash in the next block so clients can discard older blocks.
ByteCoin proposes hiding a transaction’s recipient and amount until the recipient spends the funds.
ByteCoin's post in BitcoinTalk topic 2227.
ByteCoin's post in BitcoinTalk topic 441, written shortly after a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 611, quoting Satoshi.
ByteCoin's post in BitcoinTalk topic 713, written shortly after a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 770, written shortly after a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 813, written shortly after a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 1545, quoting Satoshi.
Thread started by ByteCoin in BitcoinTalk topic 1786.
ByteCoin's post in BitcoinTalk topic 1668, quoted in a later post.
ByteCoin's post in BitcoinTalk topic 287, written shortly before a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 43, written shortly before a post by Satoshi.
ByteCoin's post in BitcoinTalk topic 837, written shortly before a post by Satoshi.