Bitcoin Forum
May 06, 2024, 09:56:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  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 »
1821  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.
1822  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.

1823  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.
1824  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.
1825  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.
1826  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.
1827  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...)

1828  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.
1829  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.
1830  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?
1831  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.
1832  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.
1833  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.
1834  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?
1835  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
1836  Bitcoin / Development & Technical Discussion / Re: [PULL REQUEST] add address to listtransactions output on: January 03, 2011, 07:52:51 PM
Pulled into git integration repository.
1837  Bitcoin / Development & Technical Discussion / Re: [PULL REQUEST] Nolisten patch on: January 03, 2011, 07:44:26 PM
Pulled into the git integration repository.
1838  Bitcoin / Development & Technical Discussion / Re: Development process straw-man on: January 03, 2011, 05:20:44 PM
I do not see any point in moving the discussion of some bitcoin changes to a special place outside the forum.  Discuss changes on the forum just like we've always done, regardless of whether that change is a proposal, a patch, or a pull request.

The forum is perfectly adequate for discussions.

OK.  Lets talk here.
1839  Bitcoin / Development & Technical Discussion / Re: Development process straw-man on: January 03, 2011, 05:08:49 PM
I'm interested in the project and have developed a patch and until I found this email I had no clue how to submit it.  Can I suggest that a development overview page be created wiki https://en.bitcoin.it/wiki/Main_Page to house this sort of instructions.  Maybe something like https://en.bitcoin.it/wiki/Development with links from the wiki Main_Page and the main website.
Done.  Please feel free to make it better.

Quote
Another thing to point out is where tickets should be opened.  I tried for quite a while to find ticket tracking on the sourceforge site.  There should probably also be a link from the sourceforge site to github. 

Good idea.
1840  Bitcoin / Development & Technical Discussion / Re: How to get the data out of bitcoind into a web app? on: January 03, 2011, 04:22:55 PM
Mirroring all of the information that bitcoin keeps about transactions inside your bitcoin-oriented web app is probably not the right way to go.

It violates the zero/one/infinity principle, and you're likely to have subtle bugs if (when?) the two copies get out of sync.

See:  http://www.bitcoin.org/wiki/doku.php?id=accounts   for "best practices".  If you're willing to share what kind of thing your web app is doing, I'd be happy to brainstorm other approches, too...
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!