Bitcoin Forum
May 09, 2024, 04:21:34 PM *
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 »
41  Other / Off-topic / Re: Can "true" randomness be obtained with each verified block? on: April 12, 2011, 12:08:19 AM
One thing you might want to do is use the hash to determine the result of a gambling game. You could bet with someone on whether the next hash will be even or odd. The problem is if your opponent is a miner, he could influence a certain percentage of the block hashes, gaining an advantage.
42  Bitcoin / Project Development / Re: This is Bitcoin's future in an image on: April 10, 2011, 06:03:03 PM
Got any Google Trends graphs that match this shape?
43  Economy / Trading Discussion / Re: Difficulty Forecast: Block 118944 on: April 09, 2011, 12:26:37 AM
The second to last dot on the blue line is the last actual data point, right? I notice that it was farther from the trend line than any other point. Is this a sign that the trend is breaking down?
44  Bitcoin / Bitcoin Discussion / Re: Amsterdam - Bitcoin at one free hackmeeting + another conference on: April 07, 2011, 10:49:46 PM
I was sent this report on genjix's talk, not sure if it's linked elsewhere:

http://www.dyndy.net/2011/04/bitcoin-presented-to-the-old-world/
45  Bitcoin / Bitcoin Discussion / Re: The term "mining" has got to go on: April 04, 2011, 07:39:34 PM
One of the influences on Bitcoin was Nick Szabo's idea of Bit Gold. I kind of wish it had been called Bitgold but that would have caused confusion with Nick's (somewhat different) idea.

Maybe we should call block creation "panning". Smiley
46  Bitcoin / Bitcoin Discussion / Re: I accidentally some user accounts on: April 04, 2011, 06:25:58 PM
You also deleted "deleted" in the title...
47  Bitcoin / Development & Technical Discussion / Re: Bitcoin API - solved! on: April 04, 2011, 03:21:19 AM
I added a step to the wiki:

# Recheck blockexplorer to make sure the address still shows the right amount, in case the block chain reorganizes

Checking the address balance once, then waiting for more blocks, is not safe by itself as the transaction may go away.

(Just realized my solution is still vulnerable: the transaction could pay you, go away, you wait n blocks, and a different transaction pays you, you recheck the balance and it looks good, but then the 2nd transaction goes away.)
48  Bitcoin / Development & Technical Discussion / Re: [PULL] spent per txout on: April 03, 2011, 08:31:00 PM
Trying to review the diff - looks like UpdateSpent() could return fReturn uninitialized if it's false.
49  Bitcoin / Development & Technical Discussion / Re: [PULL] spent per txout on: April 03, 2011, 07:07:44 PM
This is good because without it, someone can test whether 2 addresses are in the same wallet, by sending a payment to both of them. Then you can't spend one without the other.
50  Bitcoin / Development & Technical Discussion / Re: [PATCH] wallet private key encryption on: March 31, 2011, 10:37:19 PM
Steve, the way the client works now, all the wallet keys are read into memory at startup. Subsequent changes are made in memory and written to disk. This proposed patch decrypts keys as they are read into memory at startup, and encrypts new keys as they are written out to disk.

Decrypting keys on use wouldn't be too hard. Add a popup to read the passphrase, perhaps cache it for a while as you suggest.

Strangely, the hard part is encrypting new keys, because Bitcoin creates keys at odd times. The oddest time is when receiving a payment to the "current address" displayed at the top of the window. Bitcoin likes to keep things fresh so it generates a new address to display, and new key. But it can't encrypt the new key without the passphrase, and in general no user is around to respond to a popup at random times.
51  Bitcoin / Bitcoin Discussion / Re: your faith in bitcoin on: March 31, 2011, 06:24:44 PM
From The Simpsons, "Homer at the Bat":

Quote
Hypnotist: You are all very good players
Team: We are all very good players.
Hypnotist: You will beat Shelbyville.
Team: We will beat Shelbyville.
Hypnotist: You will give 110 percent.
Team: That's impossible no one can give more than 100 percent. By definition that's the most any one can give.
52  Bitcoin / Development & Technical Discussion / Re: Bitcoin account format spec? on: March 30, 2011, 08:14:14 PM
Look at my sig, Bitcoin address with my name in it courtesy of Gavin's vanity patch.
53  Bitcoin / Development & Technical Discussion / Re: Will Bitcoin work if my ISP blocks outgoing port 8333? on: March 29, 2011, 07:30:59 PM
Does your ISP also block incoming port 8333?
54  Bitcoin / Development & Technical Discussion / Re: Witholding transactions on: March 28, 2011, 04:31:25 AM
I have an even better idea. My transactions compete with those of others for free space in the blocks, so clearly I should forward only my own transactions and block everybody else's. Profit! Off to make a pull request...
55  Bitcoin / Bitcoin Discussion / Re: New wiki page on Bitcoin credit on: March 28, 2011, 01:11:11 AM
Back in the 90's on the cypherpunks mailing list, Wei Dai (of Crypto++ and b-money fame) invented a system of anonymous lending. Of course the classic problem with anonymous loans is that you don't know whose legs to break if they don't pay it back. Wei solved this problem, with some conditions.

The participants in the protocol are borrowers, lenders, and bystanders (who don't want to lend or borrow right now, but might wish to do so on future runs of the protocol). The key is that all participants are fully identified, to the extent that they are vulnerable to that all-important leg-breaking. Nevertheless, the protocol conceals the role of each participant, and the amount they are borrowing or lending, if any.

There needs to be a system of anonymous payments, and a simple trusted machine called the Pot. (In practice, the Pot would be simulated by the participants, using a cryptographic multi-party computation.)

In a preliminary phase, participants would anonymously negotiate and agree on the amount each person would borrow or lend, such that the total amount borrowed equalled the total amount lent. The actual protocol then has four phases, two for borrowing/lending, and two for repayment.

Phase 1 is private. Each participant anonymously puts money into the Pot, and gets in exchange a signed receipt for the amount. Lenders would put the most money in, bystanders less, and borrowers little or none. You'll see why in a moment.

Phase 2 is public. The Pot now has a certain amount of money in it; this is divided equally and distributed publicly to all participants.

The borrowing/lending is now done. People who put more money in the Pot than the per-person distribution in phase 2 are net lenders; people who put in less are net borrowers; and people who put in the same amount are the bystanders, with no net change. No one knows whether anyone else is a borrower or lender.

When it is time to repay the loan, two more phases are run, the mirror images of the first two.

Phase 3 is public. Each participant publicly and verifiably puts back into the Pot the exact amount taken out in phase 2 (or, that amount plus interest). This is leg-breaking time! No excuses, everybody's got to pay up.

Phase 4 is private. Each participant anonymously presents his receipt from phase 1 to the Pot, and gets back that amount (or, that amount plus interest). This unwinds the earlier transactions and all the funds are back where they started.

All that is visible publicly is that everyone splits up the pot evenly in phase 2, and then returns that same amount in phase 3. But behind the scenes, transfers of value are taking place. And failure to repay a loan means failure to carry out phase 3, which be publicly visible and will lead to serious consequences.
56  Bitcoin / Development & Technical Discussion / Re: Transaction Fees on: March 27, 2011, 08:55:21 PM
Why did you put paytxfee=0.00 in your bitcoin.conf? Is it possible you had another value in the past?
57  Bitcoin / Development & Technical Discussion / Re: [PATCH] wallet private key encryption on: March 27, 2011, 08:42:35 PM
There's good discussion of this feature here:

https://github.com/bitcoin/bitcoin/issues#issue/3

https://gist.github.com/803170

Issues:

 - Symmetric (aes) vs public key (rsa) encryption

 - Decrypt at startup vs decrypt on use

 - Create new keys automatically (as now) vs create only on user action

 - Encrypt all keys with same passphrase vs different passphrases for different key sets

One way to analyze these is via a threat model. What can the attacker do, that we will try to defend against? And what will we not defend against?

We can distinguish three levels of attacker:

1. Can read user files

2. Can read/write user files but only read system files

3. Can read/write everything, root privileges


Sorry, getting tired, will write more later.".
58  Bitcoin / Bitcoin Discussion / Re: btc app on: March 27, 2011, 06:25:44 PM
tcatm's bitcoin-js-remote script gives you a "mybitcoin at home" functionality. Run the Bitcoin client and his code on your home machine, open up port 8338 incoming, and you can access your wallet remotely using your mobile browser. It even creates and reads QR-codes for easy phone to phone payments. You don't have to trust any third party service. Really this is such a great concept, I don't know why it isn't better known.
59  Bitcoin / Development & Technical Discussion / Re: [PATCH] wallet private key encryption on: March 27, 2011, 01:08:37 AM
That's a very concise implementation. I did spot one bug:

Code:
+    vector<unsigned char> Encrypt(vector<unsigned char> vchPlaintext)
+    {
+      // max ciphertext len for a n bytes of plaintext is
+      // n + AES_BLOCK_SIZE - 1 bytes
+      int len = vchPlaintext.size();
+      int c_len = len + AES_BLOCK_SIZE, f_len = 0;
+      vector<unsigned char> vchCiphertext(c_len);
The max ciphertext size is actually len + 2*AES_BLOCK_SIZE, so you should set c_len to that, and allocate that much space.

Also a security flaw, you are using a constant IV everywhere, it looks like. You need to use a different IV for each encryption.

One other point, Bitcoin uses a CPrivKey type for sensitive data like private keys. It zeroes memory when it's freed.
60  Other / Off-topic / Re: Bitcoin related domain names... on: March 26, 2011, 10:04:06 PM
bitcoin.xxx ftw
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!