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)
Diagram
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.