-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add CLI command for extracting root xprvs #1321
Conversation
695dbfb
to
57fad60
Compare
Please give PRs a proper title instead of just accepting the default. With a proper title I can see whan a PR is about without having to follow the link. |
53b72e9
to
508ac11
Compare
lib/core/test/unit/Cardano/Wallet/Primitive/AddressDerivationSpec.hs
Outdated
Show resolved
Hide resolved
ab381ea
to
1410710
Compare
lib/core/test/unit/Cardano/Wallet/Primitive/AddressDerivationSpec.hs
Outdated
Show resolved
Hide resolved
0087967
to
09242e8
Compare
487cd9f
to
2347cb7
Compare
could split off bfe2568 to a separate pr 🤔 I made |
2347cb7
to
f97bfaf
Compare
f97bfaf
to
2792209
Compare
3858dbb
to
b02caf4
Compare
2792209
to
da17466
Compare
b02caf4
to
c07d738
Compare
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.
👍 (please wait after #1358 before merging, I cherry-picked one of your commit so the two branches will conflict).
5c0a3e5
to
8f607c6
Compare
92a721f
to
e076570
Compare
- Roundtrip properties - Integration test verifying that it works with jcli Why: We need to convert between 96-byte long hex-encoded bytestrings and XPrvs when implementing the `key root` and `key child` CLI commands.
7df2d00
to
a7623c4
Compare
Unrelated to PR.
- Add CLI usage tests for `key` and `key root` - Add key-root goldens (not externally validated) - There was a local definition of expectationFailure, using quickchecks's counterexample, which I had to rename. I'm not sure why the existing CLI tests uses QuickCheck when they only run once. - Isolate the types to one place for power & elegance - Add functionality to check CliKeyScheme equality & more powerful tests
e076570
to
c9fa75e
Compare
bors r+ |
1315: Add shutdown handler for new launcher r=KtorZ a=rvl Relates to #1314. # Overview This adds a simpler way of ensuring clean shutdown of the wallet on windows (and linux), which doesn't require DaedalusIPC. The mechanism will be used by cardano-launcher. - Adds the shutdown handler thread. - Needed to rearrange startup functions around a little bit. - Unit tests and an integration test. # Comments [Hydra jobset](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-1315) 1321: Add CLI command for extracting root xprvs r=Anviking a=Anviking # Issue Number #1316 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I have added `cardano-wallet-jormungandr key root --type random <mnemonic words>` - [x] I added unit tests for help-text and actual usage. - [x] I added a *pending* test making sure keys are compatible with jcli (which would fail) # Comments ```bash $ cardano-wallet-jormungandr key --help Usage: cardano-wallet-jormungandr key COMMAND Derive keys from mnemonics. Available options: -h,--help Show this help text Available commands: root Extract root xprv as hex (64 bytes private key + 32 bytes chain code) $ cardano-wallet-jormungandr key root --help Usage: cardano-wallet-jormungandr key root --type KEYTYPE MNEMONIC_WORDS... Extract root xprv as hex (64 bytes private key + 32 bytes chain code) Available options: -h,--help Show this help text --type KEYTYPE Any of the following: random (Daedalus, 12 words) icarus (15 words) trezor (12, 15, 18, 21, or 24 words) ledger (12, 15, 18, 21, or 24 words) $ cardano-wallet-jormungandr key root --type random flock advance execute country leader exotic mix twenty six margin orient meat 68a0f29e6bd5d8af7ffd00a55006afa8af6fbdbded07984ddf7fb1c31c66f7460685e5d1016553fccc9724f5ee95dd8d66facd2ac1bb2f6fcd7fa5e53c97a57f50c592fcd18b67bf3393a16184d009fb25450b2de8079f870222874e804584a8 ``` <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed (retrying...) |
Build succeeded |
Issue Number
#1316
Overview
cardano-wallet-jormungandr key root --type random <mnemonic words>
Comments