Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-12 Thread Chris Double
On Sat, Aug 10, 2013 at 12:14 AM, Mike Hearn wrote: > Oh, I forgot to make it clear - Chrome apps/extensions can make raw TCP > socket connections: > >http://blog.chromium.org/2012/11/introducing-tcp-listen-new-api-for.html There's a Raw Sockets proposal at the W3C that provides TCP sockets:

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Jeff Garzik
On Fri, Aug 9, 2013 at 1:58 PM, Wendell wrote: > No, it's not -- but that's certainly very cool to see Jeff. > > How is BitPay going to put this to use? Well, "wally" is just a demo application, a command line client to prove a technology. The main development is in places like "node-libcoin", w

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Wendell
No, it's not -- but that's certainly very cool to see Jeff. How is BitPay going to put this to use? -wendell grabhive.com | twitter.com/grabhive | gpg: 6C0C9411 On Aug 9, 2013, at 3:08 PM, Jeff Garzik wrote: > Certainly. BitPay is working on such a wallet: > https://github.com/jgarzik/wally >

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Wendell
"Packaged app pages always load locally. This allows apps to be less dependent on the network. Once a user installs an app, they have full control over the app's lifecycle. Apps open and close quickly, and the system can shut apps down at any time to improve performance. Users can fully uninstal

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Jeff Garzik
On Fri, Aug 9, 2013 at 7:32 AM, Wendell wrote: > To those of you in the know about modern browser tech: > > Does it seem at all conceivable that an SPV wallet could be built entirely in > JavaScript? And if indeed it is within the realm of the possible, how would > such a thing be safely distrib

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Mike Hearn
Oh, I forgot to make it clear - Chrome apps/extensions can make raw TCP socket connections: http://blog.chromium.org/2012/11/introducing-tcp-listen-new-api-for.html You would do it as a packaged app: http://developer.chrome.com/apps/about_apps.html because then they're a lot more similar to n

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Mike Hearn
Code that runs inside NativeClient has the same access level as JavaScript does. It's just a way to do things faster. Distribution as a Chrome app via the Chrome store is a fine approach, as long as people understand it's just an app platform like any other. It has pros and cons that must be weigh

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Wendell
Right, I'm not suggesting that we have this wallet in a web app, but rather precisely what you are talking about: using special browser features, and bundling it. I am fundamentally monoculture-opposed, but given Chrome's present installed base, that initial target makes sense to me, provided th

Re: [Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Mike Hearn
JavaScript is turing complete so of course it can be done. The real question you're asking is, can it be done in a web app? I think the answer is I think "no" because web apps aren't allowed to make raw TCP socket connections. Now there may be a way around that by using browser-specific things lik

[Bitcoin-development] SPV client in pure JavaScript?

2013-08-09 Thread Wendell
To those of you in the know about modern browser tech: Does it seem at all conceivable that an SPV wallet could be built entirely in JavaScript? And if indeed it is within the realm of the possible, how would such a thing be safely distributed for use? Would a signed Chrome Plugin be an ideal v