Git Product home page Git Product logo

Comments (2)

swansontec avatar swansontec commented on June 28, 2024

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.

eragmus avatar eragmus commented on June 28, 2024

Thanks for the response. Sorry for the late reply.

from airbitz-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.