-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dynamic merchant wallets #6
Comments
Generating addresses However, this this is related to their erroneous bip32 implementation that is in our current code; so @ch4ot1c was looking to see what we'd need to fix it References re erroneous code: Notes: at worst we will need to derive() the child keys with a non-fkd version of HDPrivateKey (would cherrypick those changes, or try current bitcore-lib (yikes - at least its already btcpified at ch4ot1c/bitcore-lib), or just use/copy over the part of the fixed code we need) (and yes rebuild the .js) |
There is no 'one solution' here and it depends on the merchants competence, will and ability to set up more secure solutions. They may wish to start off simple and become more secure over time. PlansStatic Wallet Address Dynamic Wallet Addresses
...provide info on what these 4 choices mean so they can make informed decisions With an xPrv and xPub generated, they need to save xPrv to a safe location and xPub can be utilised within site, via one of these different choices to get a new address from it, again in recommendation order:
...again, provide info on what these 3 choices mean so they can make informed decisions |
Note that the above xPrv and xPub generation is from the perspective of someone who isn't running their own full node server and is using our setup. If they run their own, we will provide the functionality baked in to handle all of this for them. |
This is essentially the code we need to generate and work with xPrv and xPub and derive the addresses from xPub under a number of different contexts: |
Finally, @ch4ot1c notes: |
This is a good overview. Some followup:
|
@ch4ot1c Notes on those 4 items:
|
What do you guys think of going with the static wallet for the Beta testers? |
@daniel-farina I'd agree it's a good idea for v1. @ch4ot1c actually suggested that earlier and cover donation widget only. I think static wallet for buy or donate but soon after v1 cover the above. |
New issue added to provide a plan for us to move from static to dynamic wallets as the only option that may be used: https://github.com/mattpass/btcp-widget/issues/56 |
We pushed ahead on dynamic wallets and so this issue can be closed. |
Lots of notes following discussion with @ch4ot1c
Terminology
Code - generate-keys.js
produces:
Notice we are using bitcore-mnemonic here - uses bip39 - apparently the bip32 implementation (and the old one from bitcore-lib, at that) is NON STANDARD / COMPLIANT
The text was updated successfully, but these errors were encountered: