-
Notifications
You must be signed in to change notification settings - Fork 27
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
Voting Key generation using typescript and multi file support #177
Merged
Merged
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fa72519
WIP Voting Key generation
fboucquez 2c50839
Using root private key to sign the item
fboucquez c0a6d94
Added Gimre's vector tests
fboucquez c9eb9c0
Updated CHANGELOG.md
fboucquez f4a0457
Added 2.test-sign.json vector tests
fboucquez c631e13
Multi voting file support
fboucquez 1bc94f3
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez 070c7cc
Updated improvements
fboucquez a51bd07
fixed unit test
fboucquez 181d971
Link command improvement. Unlinking old and linking up to 3 files
fboucquez 0e1fad9
votingKeyDesiredLifetime rename
fboucquez 2500a78
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez 11d3b0a
Prettier to ignore generated files
fboucquez 9a3157e
Merge branch 'dev' into native_voting_key_file
fboucquez 3b62d86
Merge branch 'native_voting_key_file' of github.com:nemtech/symbol-bo…
fboucquez 5c46791
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez e128b6c
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez 36e2b4c
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez 8416e08
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez 45a9dac
Epoch is not resolved from the network when possible
fboucquez cd51e8a
Merge remote-tracking branch 'origin/dev' into native_voting_key_file
fboucquez fa5fed1
Feedback fixes
fboucquez a7207a3
Updated docs
fboucquez ea7c963
Update CHANGELOG.md
fboucquez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
symbol-bootstrap link -t target/testnet-supernode --useKnownRestGateways $1 $2 $3 $4 $5 $6 $7 | ||
symbol-bootstrap link -t target/testnet-supernode --useKnownRestGateways --password 1111 $1 $2 $3 $4 $5 $6 $7 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
# docker rm -f $(docker ps -aq) | ||
symbol-bootstrap stop -t target/testnet-supernode |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -e | ||
symbol-bootstrap upgradeVotingKeys -t target/testnet-supernode $1 $2 $3 |
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
`symbol-bootstrap updateVotingKeys` | ||
=================================== | ||
|
||
It updates the voting files containing the voting keys when required. | ||
|
||
If the node's current voting file has an end epoch close to the current network epoch, this command will create a new 'private_key_treeX.dat' that continues the current file. | ||
|
||
By default, bootstrap creates a new voting file once the current file reaches its last month. The current network epoch is resolved from the network or you can provide it with the `finalizationEpoch` param. | ||
|
||
When a new voting file is created, Bootstrap will advise running the `link` command again. | ||
|
||
* [`symbol-bootstrap updateVotingKeys`](#symbol-bootstrap-updatevotingkeys) | ||
|
||
## `symbol-bootstrap updateVotingKeys` | ||
|
||
It updates the voting files containing the voting keys when required. | ||
|
||
``` | ||
USAGE | ||
$ symbol-bootstrap updateVotingKeys | ||
|
||
OPTIONS | ||
-h, --help It shows the help of this command. | ||
|
||
-t, --target=target [default: target] The target folder where the symbol-bootstrap network is | ||
generated | ||
|
||
-u, --user=user [default: current] User used to run docker images when creating the the voting | ||
key files. "current" means the current user. | ||
|
||
--finalizationEpoch=finalizationEpoch The network's finalization epoch. It can be retrieved from the /chain/info rest | ||
endpoint. If not provided, the bootstrap known epoch is used. | ||
|
||
DESCRIPTION | ||
If the node's current voting file has an end epoch close to the current network epoch, this command will create a new | ||
'private_key_treeX.dat' that continues the current file. | ||
|
||
By default, bootstrap creates a new voting file once the current file reaches its last month. The current network | ||
epoch is resolved from the network or you can provide it with the `finalizationEpoch` param. | ||
|
||
When a new voting file is created, Bootstrap will advise running the `link` command again. | ||
|
||
EXAMPLE | ||
$ symbol-bootstrap updateVotingKeys | ||
``` | ||
|
||
_See code: [src/commands/updateVotingKeys.ts](https://github.com/nemtech/symbol-bootstrap/blob/v1.0.7/src/commands/updateVotingKeys.ts)_ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
updateVotingKeys?