-
Notifications
You must be signed in to change notification settings - Fork 94
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
shakedex: use derive path for private key #416
base: master
Are you sure you want to change the base?
Conversation
|
||
if (!sAuction || sAuction.lockingTxHash !== owner.hash) return; | ||
|
||
const lockingPublicKey = sAuction.publicKey; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to recover this based on on-chain data @pinheadmz ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once HIP-9 is implemented in hsd wallet, it should be able to recover HIP-1 addresses from the blockchain just like it recovers receive and change addresses.
I plan on reviewing this in depth but the first comment I have is this: I think we should try to limit Bob just to UI functions and keep wallet / node features exclusively in hsd (this applies to rescan stuff / batch TXs, too). Especially now that you have proposed HIP-0009 formally we can begin working on using the wallet software we already have to recover HIP-9 addresses, etc. I understand that may slow down progress, but I think that is ok, it will certainly get better review and test coverage that way and opens the door for other HIP-1 implementations to build on hsd. Are there any other concerns with opening this kind of PR to hsd? We could discuss in an issue or something. |
You might want to follow / review handshake-org/hsd#639 as well. @Anunayj is also interested in a HIP-9 standard custom script and we are working on adding custom script signing to hsd wallet. |
yea i am open to it. so i think we would need...
|
Yeah so if you look through
So the naive way to go forward with this would be duplicate every single one of those and change it to What we may want to do is add a new wallet type or account type similar to Bitcoin's descriptor wallets where arbitrary scripts with public-key placeholders can be imported. The wallet will then proceed as normal: generate the I think the hsd wallet should not necessarily be required to know how to spend from those outputs, I'm not sure about that yet. As long as the wallet has good API for signing arbitrary scripts we should be ok with minimal additions. |
this is harder than i thought - mostly because of all the edge around rescanning auctions.
This probably take some time for review and won't make it into
0.9.0-rc.1
tomorrow. let's see if we can include this before0.9.0
turn stable.Includes:
branch
pathrequesting review from @kurumiimari @pinheadmz