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

Modify the btcsuite address requirement to be coin agnostic #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

amangale
Copy link
Contributor

@amangale amangale commented Jun 7, 2018

In this change, a new interface 'WalletAddress' is introduced which contains the methods used by the app. The one method 'IsForNet' which is btc specific is excluded.

@cpacia
Copy link
Member

cpacia commented Jun 7, 2018

So me, mg, and tyler talked about it. I think we're OK to remove the Params() function but at some point we do want to add in a function to return coin specific data as in #2.

Additionally, the Params() function is currently being used in ob-go to generate HD keys, but we're thinking about changing the three interface functions that take in the HD keys to accept a new MasterKey object and have the wallet implementation be responsible for deriving the HD keys from that so the derivation does not happen in ob-go and it doesn't need to know about the key derivation data in Params().

I'll add to this PR with changes we're thinking about.

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

Successfully merging this pull request may close these issues.

2 participants