Pages:
Author

Topic: New HTML5 Wallet with Native QR Code Scanning on iOS: Coin Pocket - page 2. (Read 6386 times)

newbie
Activity: 13
Merit: 0
Hi enriquez! Your app looks really slick, and I also like how it interacts with your QR code app.

You say that the Scan Code app has the ability to interact with other apps through a URL scheme, and in your video it looks like when you scan the QR code it jumps directly to safari and your HTML5 app. I downloaded the app but I can't find anywhere to set up the URL scheme, not in the app itself and also not in the main iPhone Settings. How would I set it up?

The reason I'm asking is I've created my own minimalist wallet Bitcoinista that can run inside a Python sandbox in iOS. The wallet can send coins based on a bitcoin URI copied from a QR code app, but it would be awesome if I can use your app to launch Bitcoinista directly after scanning the QR code! Smiley

Cheers,
Christian
newbie
Activity: 28
Merit: 0
Re: Data loss on iOS

You can restore from an iTunes or iCloud backup to get the data back.

Restoring from backup: http://support.apple.com/kb/ht1766
newbie
Activity: 28
Merit: 0
TL;DR Don't update iOS if you're using Coin Pocket from mobile safari. Wait until the next version of Coin Pocket.

After experimenting with localStorage I found an issue that leads to data loss on iOS.

If you update your iOS to a new version (for example, to the latest 7.1), then your Coin Pocket data in mobile safari will be deleted. If you use Coin Pocket from a web clip on the home screen, the data is safe after updating iOS.

I'm investigating ways to prevent data loss. I didn't want to expose the private key to the user because that adds another way for it to get it stolen, but I may add a backup/restore feature. I may also look into Javascript Database instead of localStorage to see if it is more persistent.

This IS pre-release software, so I don't expect that this has affected anyone, but I'm putting this message out there just in case.
newbie
Activity: 28
Merit: 0
You're right maxuser, that would work.  Thanks!

I added an issue to remove YQL here: https://github.com/enriquez/coinpocketapp.com/issues/8
newbie
Activity: 27
Merit: 0
Code:
curl -v -H "Origin: https://btc.coinpocketapp.com" \
  -H "Access-Control-Request-Method: GET" \
  -H "Access-Control-Request-Headers: X-Requested-With" \
  -X GET \
  "https://blockchain.info/multiaddr?active=1HeGkvDja9GYJcKFgTpNs4LALYFkRd4bWF&cors=true"

Use multiaddr instead of rawaddr (it return additional data but all is there in the "wallet" hash).
newbie
Activity: 28
Merit: 0
It looks good.
But I wonder why you are using Yahoo's YQL since you just need to add cors=true at the end of yours Blockchain.info's query? see: https://blockchain.info/api/blockchain_api CORS headers. The rawaddr, latestblock, unspent, and pushtx APIs are all supported by that.

Thanks!

I tried using CORS (see here https://bitcointalksearch.org/topic/m.5582563), but I couldn't get the response to include the CORS header back.

For example, this should come back with a "Access-Control-Allow-Origin" header:

Code:
curl -v -H "Origin: https://btc.coinpocketapp.com" \
  -H "Access-Control-Request-Method: GET" \
  -H "Access-Control-Request-Headers: X-Requested-With" \
  -X GET \
  "https://blockchain.info/rawaddr/1HeGkvDja9GYJcKFgTpNs4LALYFkRd4bWF?cors=true"

Either I'm doing something wrong, or their API doesn't actually support CORS for the endpoints that I need.
newbie
Activity: 27
Merit: 0
It looks good.
But I wonder why you are using Yahoo's YQL since you just need to add cors=true at the end of yours Blockchain.info's query? see: https://blockchain.info/api/blockchain_api CORS headers. The rawaddr, latestblock, unspent, and pushtx APIs are all supported by that.
newbie
Activity: 28
Merit: 0
Hello!

Quick demo: http://youtu.be/D0NmeVEz70c

I just published an early version of an HTML5 wallet that I've been working on. It's called Coin Pocket.  It's meant to be used for small portable amounts.  Key generation, signing, storage, etc... is all done on the client side.  It currently relies on Blockchain.info's API (through Yahoo's YQL) for block chain interaction.  It is open source, and you can run Coin Pocket on your own static site server or use the hosted version.

Details on this release: https://github.com/enriquez/coinpocketapp.com/releases/tag/v0.1.0

An official version of Coin Pocket is hosted here: https://btc.coinpocketapp.com

I also wrote an iOS app that is available in the App Store called Scan Code (https://itunes.apple.com/us/app/scan-code-qr-code-reader/id828167977?ls=1&mt=8).  It is simply a QR Code scanner that has the ability to interact with external apps using a custom url scheme.  Coin Pocket can launch Scan Code whenever a qr code is needed to be scanned.  Other wallets/apps can use it too.

Please follow along and contribute on GitHub: https://github.com/enriquez/coinpocketapp.com

Thanks!

Mike Enriquez
Independent Software Developer at Enriquez Software LLC
http://enriquez.me
Pages:
Jump to: