Comments (2)
Most of this stuff is iOS-specific. The Airbitz wallet core runs on iOS, Android, and desktop *nix, so we can't use any ObjectiveC or Apple-specific technologies in there.
The Airbitz wallet talks to three different types of servers. The login server has an HTTP/REST interface, and handles username lookup on first login, as well as checking the PIN on each PIN login, handling 2fa, and a few other chores like that. This server is zero-knowledge, meaning it doesn't actually know the username, PIN, or any other personally-identifiable data, just hashes. If the server goes down, users can still access their wallets locally via password login.
Airbitz connects to the Bitcoin network via libbitcoin servers. These servers use a ZeroMQ-based interface, and the libbitcoin project has efforts underway to enable Tor for these connections. If/when that work comes to fruition, we will most likely adopt it.
Airbitz also uses Git servers to sync files between devices. We use the HTTPS transport currently.
The libbitcoin idea for Tor is to run ZeroMQ over a SOCKS proxy, which then provides the Tor routing. This works great on Android, where the Tor client can literally be a separate process. On iOS we will have to host the Tor client inside our app's main process, but this shouldn't be too much work (just rename their main()
function to startTor()
or such and call it on a separate thread). Once we have a Tor proxy working for libbitcoin, we can probably run the other two types of connections over that as well.
We encrypt all our own data using AES256. We don't write anything to disk without encryption, aside from a few device-only files. These files are synced between devices using Git, as mentioned earlier. The username and password, when combined with salts stored on the login server, derive the first-level encryption keys for this data. These first-level keys then unlock the second-level keys, which unlock the data itself. This way, we can change the username and password without re-encrypting everything - we just need to re-encrypt the second-level keys. The second-level keys can also be unlocked using the PIN.
from airbitz-core.
Thanks for the response. Sorry for the late reply.
from airbitz-core.
Related Issues (20)
- // , Guide for Vagrant Ubuntu Build
- Option to disable data entry HOT 5
- Dynamic Fees HOT 3
- Checksum Error when building on Ubuntu 15.04 HOT 1
- README.md Broken Link HOT 1
- Ability to spend unconfirmed inputs HOT 2
- Child-pays-for-parent HOT 1
- RBF flag HOT 4
- SSL issue for Bitcoin Server Override? HOT 4
- Error: "Checksum failed on boost"
- Checksum failed on libgit2
- Cannot Compile Under MacOS 10.14 Mojave. HOT 1
- Please add NOK HOT 5
- Cannot Build under MacOS 10.14 (Mojave) HOT 3
- HD Wallet Seed HOT 5
- Small bitcoin transaction has not confirmed in over a week due to small miner fees HOT 7
- Airbitz 1.4.8 crashes on startup in genymotion emulator. HOT 7
- BTC - <currency> value not updating HOT 5
- Airbitz not showing all recovery questions from Questions.json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbitz-core.