Skip to content
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

fix: correct multisig ism signature verification logic #142

Merged
merged 3 commits into from
Nov 11, 2024
Merged

Conversation

byeongsu-hong
Copy link
Collaborator

@byeongsu-hong byeongsu-hong commented Nov 6, 2024

Current Multisig ISM's logic doesn't verifies that the duplication of validators' signature. It could be vulnerable if the malicious entity hacks the one of validator's key. This PR fixes that problem.

byeongsu-hong and others added 3 commits October 17, 2024 02:09
* fix!(isms): prevent reuse of validator signature

* chore: remove redundant comments

* fix(isms): clear way to verify message

* use hashset
* Injective updates

* Additional multisig ISM actions
@byeongsu-hong byeongsu-hong changed the title fix: multisig ism fix: multisig ism signature varification Nov 6, 2024
@byeongsu-hong byeongsu-hong changed the title fix: multisig ism signature varification fix: correct multisig ism signature varification logic Nov 6, 2024
@byeongsu-hong byeongsu-hong changed the title fix: correct multisig ism signature varification logic fix: correct multisig ism signature verification logic Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 2024

🤖 Pull request artifacts

file commit
wasm_codes.zip 1a72cc4

github-actions bot added a commit that referenced this pull request Nov 6, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 97.87234% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.46%. Comparing base (89d3943) to head (1a72cc4).

Files with missing lines Patch % Lines
contracts/isms/multisig/src/query.rs 97.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #142      +/-   ##
==========================================
+ Coverage   67.18%   67.46%   +0.27%     
==========================================
  Files          83       83              
  Lines        5278     5323      +45     
  Branches     5278     5323      +45     
==========================================
+ Hits         3546     3591      +45     
  Misses       1363     1363              
  Partials      369      369              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@byeongsu-hong byeongsu-hong merged commit d07e55e into main Nov 11, 2024
3 checks passed
@byeongsu-hong byeongsu-hong deleted the fix/ism branch November 11, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants