-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(seedutil): separate aezeed & encryption pwords
This modifies the seedutil tool so that it uses separate passwords for the aezeed and for encrypting the private key in the keystore. Previously, a single password was used for both, which is incompatible with how xud uses them separately with a master password for decryption and currently always using the default "aezeed" password for the aezeed itself. The encryption password, keystore path, and aezeed passwords are now treated as optional flags.
- Loading branch information
Showing
3 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
# seedutil | ||
|
||
This utility is used to derive an Ethereum keystore file from [aezeed](https://github.com/lightningnetwork/lnd/tree/master/aezeed) generated mnemonic seed. | ||
|
||
## Build | ||
|
||
`npm run compile:seedutil` | ||
|
||
## Usage | ||
|
||
It is recommended to use this tool on the command line ONLY for development purposes. | ||
`seedutil [twenty four recovery words separated by space] [optional password] [optional keystore path]` | ||
|
||
[Tests](/test/jest/SeedUtil.spec.ts) | ||
`seedutil [-pass=encryption password] [-path=optional/keystore/path] [-aezeedpass=optional_seed_pass] <twenty four recovery words separated by spaces>` | ||
|
||
By default the `keystore` folder will be created in the execution directory and the aezeed password will be `aezeed`. | ||
|
||
## Tests | ||
|
||
`npm run test:seedutil` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters