Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitcoin component #20

Open
zeroFruit opened this issue Jul 28, 2020 · 0 comments
Open

Bitcoin component #20

zeroFruit opened this issue Jul 28, 2020 · 0 comments

Comments

@zeroFruit
Copy link
Member

zeroFruit commented Jul 28, 2020

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.

  • Wallet is dependent on Address, Key (created by Keychain)
  • Wallet create/use UTXO, Transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant