EdgeApp / airbitz-core

Bitcoin wallet C/C++ API for building cross-platform applications that require user authentication, encryption, backup, and meta-data management. This library alone implements the full functionality of the Airbitz Edge Security platform and bitcoin wallet minus the graphical interface.
https://airbitz.co
Other
81 stars 43 forks source link

HD Wallet Seed #4

Open ShepTanner opened 10 years ago

ShepTanner commented 10 years ago

I'm developing a server using bitcoin. How can I generate the addresses for my Airbitz wallet?

Great wallet!!! Keep up the good work.

swansontec commented 10 years ago

Our wallet generates a new address for every transaction. The HD wallet seed is used to set up the random number generator that does this. You can get full details on the algorithm in bip 32.

There are plenty of libraries that implement bip 32, including Python and Javascript. If you would like to see a brief example of how we do it, check out airbitz-keygen.sh, which uses the SX command-line tools.

jsmith-dev commented 8 years ago

What is the key derivation function employed? (BIP32 key path)

swansontec commented 8 years ago

We follow the wallet structure given in the BIP. So, it's master seed (m), then wallet 0 (m0), then chain 0 (m00), and finally the address index (m00n). We use one master seed per wallet, and we don't generate change addresses differently from regular addresses, so the two middle branches are always zero.

jsmith-dev commented 8 years ago

Does AirBitz support any Hardware Key devices?

fjccoin commented 8 years ago

Let me take a look at get back to you ina day or two. Great questions though!

On Fri, Aug 5, 2016 at 1:48 PM, Julian Smith notifications@github.com wrote:

Does AirBitz support any Hardware Key devices?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Airbitz/airbitz-core/issues/4#issuecomment-237932096, or mute the thread https://github.com/notifications/unsubscribe-auth/APhQi0iz0g9JKnFHjuCv_dGyX5ngoR5Pks5qc4VpgaJpZM4DBiRL .

Fred J Constantinesco fjccoin@gmail.com | @fjccoin http:///www.twitter.com