Skip to content

Commit

Permalink
migrate keystore-path to keystore (#63)
Browse files Browse the repository at this point in the history
* migrate keystore-path to keystore

* text updates

* change error default value to undefined

* built files

* debug mode

* fix lint

* debug log

* test win

* change file system manipulation way

* change file system manipulation way

* update regex

* update the flow

* add more logs

* bumped tag version

* temporary removed minor version comparison

* temporary removed minor version comparison

* rolled back minor check removal
updated version in test json

* rolled back minor check removal
updated version in test json

---------

Co-authored-by: Ilya <[email protected]>
  • Loading branch information
vadiminc and Ilya authored Feb 1, 2024
1 parent a6a4c97 commit 2768d49
Show file tree
Hide file tree
Showing 67 changed files with 594 additions and 763 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ yarn cli <action> --help
To run you will use the "shares" command

**Input parameters:**
- keystore (ks) = The validator keystore file path. Only one keystore file can be specified using this argument
- keystore-path (kp) = The path to the folder containing validator keystore files. If a folder is provided, all keystore files within the provided folder will be split according to the provided arguments. This argument should not be used together with the `keystore` argument
- keystore (ks) = The path to either a validator keystore file or a folder that contains multiple validator keystore files. If a folder is provided, it will split in bulk all the keystore files within it according to the additional arguments provided
- password (ps) = The keystore file encryption password, if a folder was provided the password will be used for all keystore files in the folder
- operator-ids (oids) = Comma-separated list of operator IDs. The amount must be 3f+1 compatible
- operator-keys (oks) = Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible
Expand All @@ -105,7 +104,7 @@ To run you will use the "shares" command
yarn cli shares --keystore=keystore.json --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --output-folder=./ --owner-address=... --owner-nonce=..
# folder with multiple keystore files
yarn cli shares --keystore-path=./keystore-files --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --output-folder=./ --owner-address=... --owner-nonce=..
yarn cli shares --keystore=./keystore-files --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --output-folder=./ --owner-address=... --owner-nonce=..
```

**Output:** Name will start with keyshares-timestamp.json
Expand Down
4 changes: 2 additions & 2 deletions dist/esbuild/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/esbuild/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tsc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssv-keys",
"version": "1.0.9",
"version": "1.1.0",
"description": "Tool for splitting a validator key into a predefined threshold of shares via Shamir-Secret-Sharing (SSS), and encrypt them with a set of operator keys.",
"author": "SSV.Network",
"repository": "https://github.com/bloxapp/ssv-keys",
Expand Down
46 changes: 22 additions & 24 deletions dist/tsc/src/cli-shared.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/cli-shared.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2768d49

Please sign in to comment.