DE-labtory / zulu

General unified crypto wallet api user can easily manage
Apache License 2.0
8 stars 7 forks source link

Bitcoin component #20

Open zeroFruit opened 4 years ago

zeroFruit commented 4 years ago

Diagram

image

Detail

This is an overview of the BTC component. I've referenced https://github.com/btcsuite/btcwallet package structure. 1)Routing, 2)RPC call to the node, 3)How to store root wallet id, wallet, transaction is not BTC component's concern.

BTC cares about Keygen, sign, decrypt/encrypt ... key+encryption thing. And BTC domain-specific transaction building, signing and querying UTXO, etc. Maybe keychain can be a common module which can be used both by ETH and BTC.

High-level API (#19) is related to the interface between Router <> BTC.

Address, UTXO, Transaction, Key is related with Wallet.