-
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
feat: Introduce sig block height for the new replay protection #265
Merged
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
Codecov Report
@@ Coverage Diff @@
## main #265 +/- ##
=======================================
Coverage ? 53.33%
=======================================
Files ? 639
Lines ? 46816
Branches ? 0
=======================================
Hits ? 24969
Misses ? 18995
Partials ? 2852 |
egonspace
changed the title
feat: introduce
feat: Introduce sig block height for the new replay protection
Jul 7, 2021
sig block height
for a tx body field.
whylee259
reviewed
Jul 13, 2021
whylee259
approved these changes
Jul 13, 2021
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
iproudhon
approved these changes
Jul 14, 2021
brew0722
reviewed
Jul 14, 2021
brew0722
approved these changes
Jul 14, 2021
3 tasks
9 tasks
iproudhon
pushed a commit
that referenced
this pull request
Jul 14, 2021
* feat: sign block height-work1 * feat: implement sig block height; work-1 * feat: implement sig block height; work-2 * fix: make send command to require sequence flag when it is on offline mode * fix: unknown account may send tx * fix: lint error * fix: modify comment * fix: self review * docs: update changelog * fix: apply comment
4 tasks
4 tasks
zemyblue
added a commit
to zemyblue/finschia-sdk
that referenced
this pull request
Feb 11, 2022
Finschia#265)" This reverts commit c1c71f1. # Conflicts: # CHANGELOG.md # baseapp/msg_service_router_test.go # client/tx/tx.go # codec/amino_codec_test.go # docs/core/proto-docs.md # proto/lbm/auth/v1/auth.proto # server/grpc/server_test.go # simapp/genesis_account_test.go # simapp/test_helpers.go # testutil/testdata/unknonwnproto.pb.go # types/errors/errors.go # types/grpc/headers.go # types/rest/rest_test.go # types/tx/tx.pb.go # types/tx/types.go # x/auth/ante/ante.go # x/auth/ante/ante_test.go # x/auth/ante/sigverify_test.go # x/auth/ante/testutil_test.go # x/auth/client/cli/cli_test.go # x/auth/keeper/keeper.go # x/auth/legacy/legacytx/amino_signing_test.go # x/auth/signing/handler_map_test.go # x/auth/signing/verify_test.go # x/auth/simulation/decoder.go # x/auth/simulation/genesis.go # x/auth/tx/builder.go # x/auth/tx/direct_test.go # x/auth/tx/legacy_amino_json_test.go # x/auth/types/account.go # x/auth/types/account_retriever.go # x/auth/types/account_test.go # x/auth/types/auth.pb.go # x/auth/types/params.go # x/auth/vesting/types/vesting_account.go # x/auth/vesting/types/vesting_account_test.go # x/evidence/keeper/keeper_test.go # x/ibc/testing/chain.go # x/wasm/keeper/keeper_test.go # x/wasm/keeper/submsg_test.go
zemyblue
added a commit
to zemyblue/finschia-sdk
that referenced
this pull request
Feb 11, 2022
Finschia#265)" This reverts commit c1c71f1. # Conflicts: # CHANGELOG.md # baseapp/msg_service_router_test.go # client/tx/tx.go # codec/amino_codec_test.go # docs/core/proto-docs.md # proto/lbm/auth/v1/auth.proto # server/grpc/server_test.go # simapp/genesis_account_test.go # simapp/test_helpers.go # testutil/testdata/unknonwnproto.pb.go # types/errors/errors.go # types/grpc/headers.go # types/rest/rest_test.go # types/tx/tx.pb.go # types/tx/types.go # x/auth/ante/ante.go # x/auth/ante/ante_test.go # x/auth/ante/sigverify_test.go # x/auth/ante/testutil_test.go # x/auth/client/cli/cli_test.go # x/auth/keeper/keeper.go # x/auth/legacy/legacytx/amino_signing_test.go # x/auth/signing/handler_map_test.go # x/auth/signing/verify_test.go # x/auth/simulation/decoder.go # x/auth/simulation/genesis.go # x/auth/tx/builder.go # x/auth/tx/direct_test.go # x/auth/tx/legacy_amino_json_test.go # x/auth/types/account.go # x/auth/types/account_retriever.go # x/auth/types/account_test.go # x/auth/types/auth.pb.go # x/auth/types/params.go # x/auth/vesting/types/vesting_account.go # x/auth/vesting/types/vesting_account_test.go # x/evidence/keeper/keeper_test.go # x/ibc/testing/chain.go # x/wasm/keeper/keeper_test.go # x/wasm/keeper/submsg_test.go
zemyblue
added a commit
that referenced
this pull request
Feb 16, 2022
* Revert "feat: Introduce sig block height for the new replay protection (#265)" This reverts commit c1c71f1. # Conflicts: # CHANGELOG.md # baseapp/msg_service_router_test.go # client/tx/tx.go # codec/amino_codec_test.go # docs/core/proto-docs.md # proto/lbm/auth/v1/auth.proto # server/grpc/server_test.go # simapp/genesis_account_test.go # simapp/test_helpers.go # testutil/testdata/unknonwnproto.pb.go # types/errors/errors.go # types/grpc/headers.go # types/rest/rest_test.go # types/tx/tx.pb.go # types/tx/types.go # x/auth/ante/ante.go # x/auth/ante/ante_test.go # x/auth/ante/sigverify_test.go # x/auth/ante/testutil_test.go # x/auth/client/cli/cli_test.go # x/auth/keeper/keeper.go # x/auth/legacy/legacytx/amino_signing_test.go # x/auth/signing/handler_map_test.go # x/auth/signing/verify_test.go # x/auth/simulation/decoder.go # x/auth/simulation/genesis.go # x/auth/tx/builder.go # x/auth/tx/direct_test.go # x/auth/tx/legacy_amino_json_test.go # x/auth/types/account.go # x/auth/types/account_retriever.go # x/auth/types/account_test.go # x/auth/types/auth.pb.go # x/auth/types/params.go # x/auth/vesting/types/vesting_account.go # x/auth/vesting/types/vesting_account_test.go # x/evidence/keeper/keeper_test.go # x/ibc/testing/chain.go # x/wasm/keeper/keeper_test.go # x/wasm/keeper/submsg_test.go * Revert "feat: Introduce sig block height for the new replay protection (#265)" This reverts commit c1c71f1. # Conflicts: # CHANGELOG.md # baseapp/msg_service_router_test.go # client/tx/tx.go # codec/amino_codec_test.go # docs/core/proto-docs.md # proto/lbm/auth/v1/auth.proto # server/grpc/server_test.go # simapp/genesis_account_test.go # simapp/test_helpers.go # testutil/testdata/unknonwnproto.pb.go # types/errors/errors.go # types/grpc/headers.go # types/rest/rest_test.go # types/tx/tx.pb.go # types/tx/types.go # x/auth/ante/ante.go # x/auth/ante/ante_test.go # x/auth/ante/sigverify_test.go # x/auth/ante/testutil_test.go # x/auth/client/cli/cli_test.go # x/auth/keeper/keeper.go # x/auth/legacy/legacytx/amino_signing_test.go # x/auth/signing/handler_map_test.go # x/auth/signing/verify_test.go # x/auth/simulation/decoder.go # x/auth/simulation/genesis.go # x/auth/tx/builder.go # x/auth/tx/direct_test.go # x/auth/tx/legacy_amino_json_test.go # x/auth/types/account.go # x/auth/types/account_retriever.go # x/auth/types/account_test.go # x/auth/types/auth.pb.go # x/auth/types/params.go # x/auth/vesting/types/vesting_account.go # x/auth/vesting/types/vesting_account_test.go # x/evidence/keeper/keeper_test.go # x/ibc/testing/chain.go # x/wasm/keeper/keeper_test.go # x/wasm/keeper/submsg_test.go * fix: fix lint warning. * chore: add changelog about this pr * fix typo * chore: fix CHANGELOG.md links display error * Update x/auth/tx/direct.go fix: wrong comment. Co-authored-by: Sujong Lee <leesj9476@naver.com> Co-authored-by: Sujong Lee <leesj9476@naver.com>
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
Introduce
sig block height
to be added to tx body that is included to sign bytes.And I removed account number concept.
This PR includes following features.
VALID_SIG_BLOCK_PREIOD
that limits how old the sig block height from current.--offline
flag of broadcast command does not work.closes: #258
How to use
To test sending tx from unknown account
Configuration
We can configure
valid_sig_block_period
of auth param by modifyinggenesis.json
This configuration property limits how much older the value of the sig block height can be than the current block height.
The default value is 100.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes