Bitcoin Forum
May 09, 2016, 01:09:45 AM *
News: New! Latest stable version of Bitcoin Core: 0.12.1 [Torrent]
 
  Home Help Search Donate Login Register  
  Show Posts
Pages: « 1 ... 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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 »
1821  Bitcoin / Development & Technical Discussion / Re: [PULL REQUEST] CORS support on: January 11, 2011, 12:53:33 PM
davout said (at the github pull request):

Quote
I think this needs to be explicitly allowed from the bitcoin client side, otherwise any website could start quietly bruteforcing the username/password out of a client.

If you've opened up access to the rpcport, then I don't think CORS support adds any significant vulnerability to password brute-forcing.  I suppose it means a 10-year-old non-programmer can repeatedly enter a username and password into a website to try to brute-force your rpcpassword... but anybody capable of writing or running a script could just write a brute-forcer that doesn't run in a browser.

And, come to think of it, turning on CORS explicitly wouldn't stop the ten-year-old, either: they could just repeatedly browse to URL  http://your-bitcoind-machine:8332/ and try different usernames/passwords.

Also, bitcoind already has anti-brute-forcing code.

The only security vulnerability I could imagine with CORS is that it might encourage people to add:
  rpcallowip=*
... to their bitcoin.conf, so they can connect to bitcoin from any IP address.  And I worry that they might not bother to setup SSL, in which case their rpc username/password will be sent across the net in the clear.
1822  Economy / Economics / Re: Peak oil, fact, fiction or government scape goat? on: January 10, 2011, 04:12:14 PM
I wrote a blog post about peak oil a couple of years ago:
 http://gavinthink.blogspot.com/2008/04/peak-oil-more-like-speed-bump-really.html

I still believe my conclusion:  we'll be fine.  We'll use less oil and more of something else.  After all we survived Peak Whale Oil (you know, whale oil, that essential commodity that was so great for high-tech oil lanterns).
1823  Bitcoin / Development & Technical Discussion / Re: Can viruses steal people's bitcoin purses? What can be done for protection? on: January 10, 2011, 12:32:55 AM
"Just turn on Berkeley db encryption and you're done" -- ummm:

First, unless I'm reading the bdb docs wrong, you specify a password at database creation time.  And then can't change it.

So, at the very least, somebody would have to write code that (safely) rewrote wallet.dat when you set or unset or changed the password.

Second, encrypting everything in wallet.dat means you'd have to enter your wallet password as soon as you started bitcoin (because user preference are stored in there right now), when ideally you should only enter the password as you're sending coins.

And third, there are all sorts of usability issues with passwords.  Users forget their passwords.  They mis-type them.  I wouldn't be terribly surprised if doing the simple thing and just encrypting the whole wallet with one password resulted in more lost bitcoins due to forgotten passwords than wallets stolen by trojans.

I think creating a safe, useful wallet protection feature isn't easy, and there a lot of wrong ways to do it.
1824  Bitcoin / Technical Support / Re: Segfault on hardened Linux systems on: January 09, 2011, 05:57:43 PM
The CPU miner code has all sorts of now-mostly-worthless (because GPU mining is so much more energy-efficient than CPU mining) optimizations.  Maybe hardened Linux doesn't like the assembly code or SSE instructions?
1825  Bitcoin / Development & Technical Discussion / Re: secp256k1 on: January 09, 2011, 05:44:15 PM
I agree with mh-- if there are real compatibility issues or weaknesses, then those would be a good reason to switch curves.

If there aren't, sep256k1 seems plenty good enough for the forseeable future.  I think most programmers (myself included) have a tendency to worry about small-probability "what if" problems that we know how to solve, when we'd be better off thinking about high-probability problems that we don't want to think about because we don't already know how to solve them.

Like multifactor wallet authentication so trojans don't steal users' wallets....
1826  Bitcoin / Development & Technical Discussion / [PULL REQUEST] CORS support on: January 07, 2011, 07:23:45 PM
https://github.com/bitcoin/bitcoin/pull/23

Cross Origin Resource Sharing lets servers support cross-origin Javascript. It is supported by the latest browsers (although IE support is... different), and involves sending CORS headers in responses.

Adding this enables Javascript code running in a browser to connect with any bitcoin/bitcoind that allows RPC connections from the browser's IP address and has the right rpc username/password.

Code changes are minimal (4 lines of code to output CORS headers).  Thanks to tcatm for implementing and testing.
1827  Bitcoin / Development & Technical Discussion / [PULL REQUEST] Add "details" to gettransaction output on: January 07, 2011, 07:18:26 PM
https://github.com/bitcoin/bitcoin/pull/24
This adds a new field to the output of gettransaction <txid> :  "details"

It is an array of objects containing account/address/category/amount (and maybe fee).  For most transactions to or from your wallet, it will contain just one object, but for sends from one account to another it will contain multiple objects.

Example output:

Code:
{
    "amount" : 0.00000000,
    "fee" : 0.00000000,
    "confirmations" : 609,
    "txid" : "b593920033b905c0e7c1d82d5b3e15a114841fa916719e968add3212e07c73a0",
    "time" : 1294342907,
    "details" : [
        {
            "account" : "Test2",
            "address" : "mtQArCTnZHGsPf89jus6khxriYsJbU673P",
            "category" : "send",
            "amount" : -11.00000000,
            "fee" : 0.00000000
        },
        {
            "account" : "Test1",
            "address" : "mtQArCTnZHGsPf89jus6khxriYsJbU673P",
            "category" : "receive",
            "amount" : 11.00000000
        }
    ]
}

I'm not sure "details" is the right name for this information; if you have a better suggestion, speak up.

1828  Bitcoin / Development & Technical Discussion / Re: CMake build system on: January 07, 2011, 05:24:16 PM
Great!  I'd like to see this good work make it back into mainline bitcoin; please talk with the other improve-the-build-process efforts and submit some patches.
1829  Bitcoin / Development & Technical Discussion / Re: Builds for Ubuntu? on: January 07, 2011, 05:23:55 PM
Great!  I'd like to see this good work make it back into mainline bitcoin; please talk with the other improve-the-build-process efforts and submit some patches.
1830  Bitcoin / Development & Technical Discussion / Re: HOWTO: Compiling Bitcoin v0.3 on FreeBSD (7.2,7.3,8.0) on: January 07, 2011, 05:23:32 PM
Great!  I'd like to see this good work make it back into mainline bitcoin; please talk with the other improve-the-build-process efforts and submit some patches.
1831  Bitcoin / Development & Technical Discussion / Re: not oficial bitcoin apps debian/ubuntu packages ... on: January 07, 2011, 05:23:14 PM
Great!  I'd like to see this good work make it back into mainline bitcoin; please talk with the other improve-the-build-process efforts and submit some patches.
1832  Bitcoin / Development & Technical Discussion / Re: Making a real tangible bitcoin that actually conveys BTC on: January 07, 2011, 03:29:58 PM
The smartcard-generates-a-private-key-itself seems like overkill.  No matter what, you have to trust the smartcard manufacturer.  Because even if the smartcard generates a private key, you have to trust that the smartcard manufacturer didn't:
 + Add a backdoor that lets them read the private key
 + Break the implementation so the private key created is predictable

If you have to trust the smartcard manufacturer anyway, it seems to me a much simpler solution is to just associated a bitcoin address with a tangible bitcoin.

Redeeming the tangible bitcoin then means turning it over to the issuer and having them send the bitcoins to one of your addresses.

It is easy to solve half of the "is this valid" problem-- you can easily check to see if bitcoins have been sent to that address and are still unspent.

The other half of the problem is "is there another unredeemed copy out there?"

Perhaps the issuer could publish a public database of unredeemed tangible bitcoins that is:
  bitcoin address -->  hash of information that the tangible bitcoin purchaser provides

I could then check that database to see if bitcoin address 1abc was sold ONLY to SHA256("Gavin Andresen 1-Jan-2011").  That stops the issuer from selling the same bitcoins over and over again.

I still have to trust that the issuer won't decide to spend all the bitcoins (since they have the private keys) and disappear.  But that's really no different from trusting your smartcard manufacturer.

(interesting thing to think about:  the issuer could actually use just one private key and generate as many public keys as they like that can all be signed using that one private key...)

1833  Bitcoin / Bitcoin Discussion / Re: End the Confusion - Organizing the Protocol development effort on: January 07, 2011, 03:01:44 PM
I think it would be to a great advantage to everybody involved if we all worked together rather than having this accomplished as a bunch of different and separate efforts.

Good idea.  I vote for the new wiki as the right spot, with the Discussion pages there as the place to bring up issues with the documentation/etc.

I'll put a pointer to the new wiki at the beginning of my bitcointools NOTES.txt.

Quote
  More significantly, I would like to get a forum or some place where we as a community can intelligently debate and discuss the internal workings of the software and specifically do either a "cleanup" of the protocol or to rationally make changes to the overall protocol that can be beneficial.

Do we need a separate forum specifically for network-related stuff?  Seems to me the Development forum here is the right place for those kinds of discussions.
1834  Bitcoin / Development & Technical Discussion / [RFC] monitor JSON-RPC api (push instead of poll) on: January 06, 2011, 06:38:27 PM
I've been reworking my old 'monitorreceived' patch to catch up with the latest JSON api changes, and I'm looking for feedback.

New methods I've already implemented:

  • monitorblocks <url> [monitor=true]: POSTs a JSON-RPC notification to <url> when new blocks are accepted.
  • listmonitored : returns list of URLs that are monitoring new blocks
  • getblock <depth> : Returns information about block at depth <depth>

getblock/monitorblocks give this information (this is one of the -testnet blocks):
Code:
{
 "hash":"000000002eb339613fd83ea65f3620cc85a8247893ea7f1f85e40fc9632db50f",
 "blockcount":21109,
 "version":1,
 "merkleroot":"c0efb898417b55dbec645eeda3e5a3c092c22e21e17f423876e858bc223e721c",
 "time":1294269726,
 "nonce":595884571,
 "difficulty":4.81431771,
 "tx":[
   "ea214bb68aeca12eea6e8467b3b72dcf4c3aef0de015e5d21b51d63ed9fba1a9",
   "90727f2409ea326fcb5e218c1c4213608bf3f2e9d18b3191e52fff86ccda7701"
  ],
 "hashprevious":"0000000002889316c2e34614eadcafea44cf0899945dde0da0fa7a765058aca6"
}

The monitor JSON-RPC notification wraps that information with a call to "monitorblock" -- see http://gavinpostbin.appspot.com/15depef for exactly what a notification looks like.

I'm thinking about adding notification for 0-confirmation wallet transactions, too; something like:

monitortx <url> [monitor=true]  : POST to url when wallet transactions (sends and receives) are accepted.

Information posted would be the same as you get from calling gettransaction, and I'll change listmonitored to return lists of { "category" : block/tx, "url" : url }.

Possible reasons NOT to add this to mainline bitcoin:

1. I'm using boost::xpressive (regular expression library) to parse the urls.  Bitcoin is already dependent on lots of other pieces of Boost, and xpressive is compiled as a header-only dependency (no changes to the Makefiles)... but I wouldn't be surprised if using xpressive causes problems on SOME compiler somewhere.

2. POSTing to https: URLs won't work if you're running on Windows (any windows/mingw experts want to take another crack at getting full openssl working?).

3. Related to https/ssl:  if you POST transactions to a non-ssl url, somebody eavesdropping on your packets will be able to figure out which bitcoin addresses belong to you.  This is a potential privacy issue.

As always, feedback, encouragement, and reality-checks are welcome.
1835  Bitcoin / Bitcoin Discussion / Re: Ubuntu bitcoin packages on: January 06, 2011, 12:13:06 AM
It is also possible to use Launchpad for Mac/Windows software (e.g. this project is Win-Only: https://launchpad.net/lilregcleaner)

... but Launchpad won't build (run the compiler on one of their machines) Mac/Windows software, or did I miss that feature when I looked at the website?
1836  Bitcoin / Bitcoin Discussion / Re: Official Bitcoin Unicode Character? on: January 06, 2011, 12:10:47 AM
It would be really nice if the OP created a poll btw.

Done.
1837  Bitcoin / Development & Technical Discussion / Re: CIA bot for gavin's bitcoin branch on github on: January 05, 2011, 07:38:40 PM
CIA...  sounds scary!

I'll make it post to #bitcoin-dev

By the way: I cleaned up the SourceForge project a bit today, adding a pointer to the Technical Support forum here for support and shutting off some unused features.
1838  Bitcoin / Bitcoin Discussion / Re: Dare to be Rich! on: January 05, 2011, 03:15:30 PM
trapezoid....  are you related to Dr. Gene Ray, Cube Phenomenologist and THE WISEST HUMAN?

In the programming world, I'm a fan of what is called "duck typing" -- if it looks like a duck, walks likes a duck, and quacks like a duck, then it is a duck, even if you give it a fancy name like TrapezoidalFowl or MultiLevelBird.
1839  Bitcoin / Bitcoin Discussion / Re: Ubuntu bitcoin packages on: January 05, 2011, 03:10:42 PM
Very nice!  Let me ask some dumb questions:

I've setup a launchpad PPA to host Ubuntu packages of bitcoin.

What does PPA stand for?

Does launchpad help solve the 'trusted build' problem-- e.g. does the build process automatically fetch from source code that we can all look at and audit?

How hard would it be to setup something similar to produce regular builds of the github integration repository?

Right now, the bitcoin build process is "Satoshi does it."  Using Launchpad to create the Linux builds seems like the right way to go.

Last dumb question:  are there services similar to Launchpad for building Mac/Windows software?
1840  Bitcoin / Bitcoin Discussion / Re: Dare to be Rich! on: January 05, 2011, 12:28:29 PM
You should be honest about what you're doing:
  http://en.wikipedia.org/wiki/Ponzi_scheme
Pages: « 1 ... 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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 »
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!