-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DVT-293] Generate edge validators keys (wallet, consensus and networ…
…k) (#9) * feat: support different key types * feat: generate a bls key pair when creating a new wallet * refactor: rename KEYPAIR_BITS_SIZE constant * refactor: abstract key type to int conversion in a function * refactor: add missing json tag * refactor: use %w instead of %v to format errors * fix: ed25519 key-type is now used by default * fix: rsa and ecdsa key generation * fix: only use protocol buffer format only when generating secp256k1 keys * refactor: simplify make call by omitting redundant arguments (S1019) * doc: add command to generate a networking key for edge * chore: update dependencies * refactor: raise an error when the key type is not implemented * refactor: move json marshal code into the run command to avoid redundant code * refactor: reorganization of functions and types * test: add tests for generateSeededLibp2pNodeKey function * test: improve test function * fix: fix rsa seeded key generation * test: add test for other nodekey functions * fix: adding validation to avoid nonsensical arguments * test: rename method * doc: add more context on seeded key generation issues * doc: provide more context on generateSeededLibp2pNodeKey * refactor: code factorization * refactor: factorize switch statement Co-authored-by: John Hilliard <[email protected]>
- Loading branch information
1 parent
07313d2
commit 402caf3
Showing
6 changed files
with
355 additions
and
116 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
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.