-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove support for composite (BLS) key type #817
Merged
torao
merged 5 commits into
Finschia:main
from
torao:fix/remove_composite_key_type_support_in_init
Dec 12, 2022
Merged
Remove support for composite (BLS) key type #817
torao
merged 5 commits into
Finschia:main
from
torao:fix/remove_composite_key_type_support_in_init
Dec 12, 2022
+79
−6
Conversation
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
…init CLI command Note that this removal is limited to the LBM layer and composite keys in Ostracon can still be used. * fixed to be error when unsupported key types are specified. * fixed duplicated default values in help messages. * added test case: ed25519 → success, composite → failure, lamport → failure
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #817 +/- ##
==========================================
+ Coverage 61.75% 61.82% +0.06%
==========================================
Files 883 883
Lines 100381 100384 +3
==========================================
+ Hits 61988 62059 +71
+ Misses 34775 34695 -80
- Partials 3618 3630 +12
|
* add changelog * add uncovered test case * correct import sequence
torao
force-pushed
the
fix/remove_composite_key_type_support_in_init
branch
from
December 1, 2022 08:43
4f64d48
to
10cd59c
Compare
torao
changed the title
Remove support for composite (BLS) type
Remove support for composite (BLS) key type
Dec 1, 2022
zemyblue
approved these changes
Dec 5, 2022
0Tech
approved these changes
Dec 6, 2022
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.
LGTM
…b.com:torao/lbm-sdk into fix/remove_composite_key_type_support_in_init
zemyblue
added a commit
to zemyblue/finschia-sdk
that referenced
this pull request
Jan 12, 2023
* main: (30 commits) chore(deps): Bump actions/cache from 3.2.2 to 3.2.3 (Finschia#860) chore(deps): Bump golang.org/x/crypto from 0.4.0 to 0.5.0 (Finschia#854) feat: Remove `x/wasm` module (Finschia#850) refactor: Remove useless stub BeginBlock/EndBlock methods (Finschia#853) feat: enable querying based on mempool status (only gRPC) (Finschia#840) feat(x/foundation): remove unnecessary gov-mint feature (Finschia#848) chore(deps): Bump actions/cache from 3.2.1 to 3.2.2 (Finschia#845) chore(deps): Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 (Finschia#847) chore(deps): Bump actions/cache from 3.2.0 to 3.2.1 (Finschia#841) fix: apply foundation audit (Finschia#834) chore(deps): Bump actions/setup-go from 3.4.0 to 3.5.0 (Finschia#831) chore(deps): Bump actions/cache from 3.0.11 to 3.2.0 (Finschia#839) ci: automate release process (Finschia#829) chore(deps): Bump github.com/prometheus/common from 0.37.0 to 0.39.0 (Finschia#832) chore(deps): Bump goreleaser/goreleaser-action from 3 to 4 (Finschia#830) chore(deps): Bump github.com/magiconair/properties from 1.8.6 to 1.8.7 (Finschia#826) chore(deps): Bump technote-space/get-diff-action from 6.1.1 to 6.1.2 (Finschia#822) chore(deps): Bump golang.org/x/crypto from 0.2.0 to 0.4.0 (Finschia#828) feat: Get validator pubkey considering KMS (Finschia#821) Remove support for composite (BLS) key type (Finschia#817) ... # Conflicts: # x/foundation/msgs.go # x/wasm/lbmtypes/codec.go # x/wasm/types/codec.go
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR removes the support for
composite
from--priv_key_type
option ofinit
CLI command in relation to #808.Note that this removal is limited to the LBM layer and composite keys in Ostracon can still be used. The only subcommand covered is
init
which generates the private key for setup.With this modification, only
ed25519
key type can be specified in LBM, but the--priv_key_type
option is retained for future use.closes: #808
Motivation and context
The composite (BLS) keys are experimental on Ostracon side and are therefore not intended for formal use in the current LBM implementation. However, since the key type is passed unchecked to Ostracon's library at node creation, it's possible to create a key of type
compsite
, which will subsequently fail to load. For this reason, LBM requirescomposite
keys to be an error.How has this been tested?
Two new unit tests have been introduced.
Screenshots (if appropriate):
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml