onchain.io
Newbie
Offline
Activity: 29
Merit: 0
|
|
September 11, 2014, 10:15:50 AM |
|
Hi there, I've just pushed a new version (r0.0.3) of the python library on github: - Fixed a problem with urlparse in python 2.7 - Cleaned package structure - Created a setup script for clean installation (setuptools) I've also setup a demo server with 2 python demos (authentications with mainnet addresses): - BitId authentication demo : http://vps90685.ovh.net:8080/ - BitId 2FA demo : http://vps90685.ovh.net:8081/ Hi, I'm working on an android app at the moment. I can log onto erics implementation (ruby on rails app) but not yours. I think this may be a confusion over the protocol. I'm posting the following parameters. Started POST "/callback" for 192.168.178.39 at 2014-09-11 12:07:05 +0200 {"signature"=>"ICmRRZees1ERGP0zFRpjlzNA60e3b9GYAwScGbpqe7Lnek6ulUwTB3VXkWkH1ZbaPirEf60EKrWGAXE0BqMSETI=", "uri"=>"bitid://192.168.178.29:3000/callback?x=463eb9f064a4173f&u=1", "address"=>"1PmcrixixGKzSyL6NbNcSzjHGLSsgb7dfa"}
|
|
|
|
|
laurentmt
|
|
September 11, 2014, 01:42:14 PM |
|
Hi onchain ! Sorry for the late answer (was out of office). Started POST "/callback" for 192.168.178.39 at 2014-09-11 12:07:05 +0200 {"signature"=>"ICmRRZees1ERGP0zFRpjlzNA60e3b9GYAwScGbpqe7Lnek6ulUwTB3VXkWkH1ZbaPirEf60EKrWGAXE0BqMSETI=", "uri"=>"bitid://192.168.178.29:3000/callback?x=463eb9f064a4173f&u=1", "address"=>"1PmcrixixGKzSyL6NbNcSzjHGLSsgb7dfa"} Regarding the structure of your request, everything seems ok. I assume the values are those used with the rails demo and that you had different uri, signature & address for your test with the python demo. That's right ? May you check the value of the field "message" in the json returned by the server ? It should give us a first hint about the problem.
|
|
|
|
onchain.io
Newbie
Offline
Activity: 29
Merit: 0
|
|
September 11, 2014, 01:48:37 PM |
|
I assume the values are those used with the rails demo and that you had different uri, signature & address for your test with the python demo. That's right ?
That's correct. May you check the value of the field "message" in the json returned by the server ? It should give us a first hint about the problem.
I'll do some extra debug now. Thanks.
|
|
|
|
onchain.io
Newbie
Offline
Activity: 29
Merit: 0
|
|
September 11, 2014, 01:59:45 PM |
|
|
|
|
|
laurentmt
|
|
September 11, 2014, 02:00:59 PM |
|
I've just done a quick check with the values sent in your previous post. At library level all tests (bitid uri, address, signature) are ok. I guess the problem is with the app demo or with the server. The /callback POST request has a mimetype header set to "application/json" ? EDIT : Ooops. Cross-post Cool ! What was the problem ?
|
|
|
|
onchain.io
Newbie
Offline
Activity: 29
Merit: 0
|
|
September 11, 2014, 02:04:19 PM |
|
Not sure. It's working now, that's the main thing.
|
|
|
|
laurentmt
|
|
September 11, 2014, 02:09:14 PM |
|
Not sure. It's working now, that's the main thing. Sure. Anyway, it's really great that you've integrated Bitid in the wallet ! Unfortunately, I don't own an android smartphone, so I won't be able to check your android app against futures version of the library but if your web web wallet manages bitid, I'll add it to my list of test platforms with Dark Wallet. Keep up the good work ! Laurent
|
|
|
|
onchain.io
Newbie
Offline
Activity: 29
Merit: 0
|
|
September 11, 2014, 02:11:30 PM |
|
I'll add it to my list of test platforms with Dark Wallet.
Dark Wallet supports BitID ? Do you have a link I can look at.
|
|
|
|
laurentmt
|
|
September 11, 2014, 02:16:19 PM |
|
Dark Wallet supports BitID ? Do you have a link I can look at.
They do, since their last release ( alpha 5)
|
|
|
|
trasla
|
|
September 12, 2014, 09:34:19 AM |
|
I can confirm the demo on http://vps90685.ovh.net:8080/ works with mycelium wallet, too. Mycelium warns me about the callback using http instead of https, though (Also, mycelium will not have bitid for prodnet right away. The prototype implementation is just available in the last regular testnet build, and for HD will be working again in the next alpha release on testnet, allowing you to have multiple bitid identities, one for each HD account (or single address account))
|
|
|
|
laurentmt
|
|
September 12, 2014, 04:31:25 PM |
|
I can confirm the demo on http://vps90685.ovh.net:8080/ works with mycelium wallet, too. Mycelium warns me about the callback using http instead of https, though (Also, mycelium will not have bitid for prodnet right away. The prototype implementation is just available in the last regular testnet build, and for HD will be working again in the next alpha release on testnet, allowing you to have multiple bitid identities, one for each HD account (or single address account)) Thanks for the feedback and information ! The warning about http instead of https is a great idea. All websites should use https
|
|
|
|
Rassah
Legendary
Offline
Activity: 1680
Merit: 1035
|
|
September 12, 2014, 09:09:07 PM |
|
I can confirm the demo on http://vps90685.ovh.net:8080/ works with mycelium wallet, too. Mycelium warns me about the callback using http instead of https, though (Also, mycelium will not have bitid for prodnet right away. The prototype implementation is just available in the last regular testnet build, and for HD will be working again in the next alpha release on testnet, allowing you to have multiple bitid identities, one for each HD account (or single address account)) I was just about to post that too. Really cool!
|
|
|
|
xchrix
|
|
October 21, 2014, 09:41:04 PM |
|
how did you do it? i am unable to get it work with my mycelium wallet. is there a list of android apps which are supporting BitID?
|
|
|
|
trasla
|
|
October 22, 2014, 10:07:53 AM |
|
how did you do it? i am unable to get it work with my mycelium wallet. is there a list of android apps which are supporting BitID? BitId is currently only enabled in the testnet version of mycelium. We are still discussing whether we want to derive the keys in the exact way we do now. Note that the example listed above will reject testnet addresses as invalid, in order to test that one I enabled bitid for my prodnet version.
|
|
|
|
laurentmt
|
|
October 22, 2014, 12:17:43 PM |
|
how did you do it? i am unable to get it work with my mycelium wallet. is there a list of android apps which are supporting BitID? BitId is currently only enabled in the testnet version of mycelium. We are still discussing whether we want to derive the keys in the exact way we do now. Note that the example listed above will reject testnet addresses as invalid, in order to test that one I enabled bitid for my prodnet version. That's right, http://vps90685.ovh.net:8080/ is setup to reject all addresses which are not mainnet addresses. Here is a new instance of the demo app for testnet addresses: http://vps90685.ovh.net:8084/
|
|
|
|
Mitchell
Staff
Legendary
Offline
Activity: 4074
Merit: 2262
Verified awesomeness ✔
|
|
October 22, 2014, 12:36:47 PM |
|
I just tried the TestNet version and I can confirm that it works like it should. Thanks for keeping those servers up and running.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
Falkvinge
Newbie
Offline
Activity: 31
Merit: 0
|
|
October 27, 2014, 08:50:22 AM |
|
I intend to implement this as a 2FA sign-on in Swarmops over the next two weeks. I've never seen _anything_ matching its ease of use. Is there redistributable server-side code somewhere I can use as a template? My platform is ASP.Net and C#. I would rather not reimplement crypto code, but I am happy to change its syntax keywords from another implementation language. Cheers, Rick (Swarmops: https://github.com/Swarmops/Swarmops)
|
|
|
|
bernard75
Legendary
Offline
Activity: 1316
Merit: 1003
|
|
October 27, 2014, 09:35:20 AM |
|
I just tried the TestNet version and I can confirm that it works like it should. Thanks for keeping those servers up and running. Thumbs up here too.
|
|
|
|
laurentmt
|
|
October 27, 2014, 10:02:44 AM |
|
I intend to implement this as a 2FA sign-on in Swarmops over the next two weeks. I've never seen _anything_ matching its ease of use. Is there redistributable server-side code somewhere I can use as a template? My platform is ASP.Net and C#. I would rather not reimplement crypto code, but I am happy to change its syntax keywords from another implementation language. Cheers, Rick (Swarmops: https://github.com/Swarmops/Swarmops) Hi Falkvinge, There's no server-side code written in C# yet but it would be really great if someone can achieve that. WRT crypto code, there's a great bitcoin library written in C# : NBitcoinI'm almost sure that you can get all the crypto code required by BitId (basically the verification of ECDSA signatures) from this library. You may contact Nicolas Dorier (maintener of NBitcoin) to check if you can reuse parts of his code and where to find the relevant code. WRT BitId code, implementing server-side code is quite straightforward. There's several implementations in different languages : - Ruby (original code) - Python- JS- PHPI hope it helps. Do not hesitate if you need more details about the protocol. Thumbs up here too.
You're welcome
|
|
|
|
|