-
Notifications
You must be signed in to change notification settings - Fork 219
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
feat: adds a create combo key cli command for wallet #4751
feat: adds a create combo key cli command for wallet #4751
Conversation
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.
LGTM, some minor comments
Nit: I fail to understand the use case here?
|
…key (#4759) Description --- The goal of the current PR is to add a cli command such that a wallet can create a utxo with a spend `CheckMultiSigVerifyAggregatePubKey` script that requires the a m-of-n list of keys to spend. It should be merged after #4742 and #4751. Motivation and Context --- It addresses `Step 2` in the following [MvP](https://demo.hedgedoc.org/rgLUGP_YRiGKjKkgehiG4w#Step-2). How Has This Been Tested? --- Unit tests
Description --- Apply m_of_n_feature branch - PR #4751 - PRs #4759, #4776, #4798, #4822 Motivation and Context --- Add m-of-n scripting ability How Has This Been Tested? --- **Note:** Not tested yet What process can a PR reviewer use to test or verify this change? --- Code review <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
Description
Adds a
create_combo_key
method to wallet. The main goal is to allow the user to create a new pair of (secret key, public key), by passing in a given string value.Motivation and Context
Wallet needs a terminal command to create a new public key and secret key from the key manager service.
This key needs to be created based on a provided string seed and send back to the user.
The key manager service derives a key based on the string and the master seed of the wallet. We need to add this seed string as a branch on the local instance of the key manager and then we can track if the user asks for the key twice.
The current command is needed in order to as a firs step to execute an m-of-n multi-party script payment protocol. See here and here for more details.
How Has This Been Tested?
Unit tests