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

core/consensus: add message signing #517

Merged
merged 2 commits into from
May 11, 2022
Merged

core/consensus: add message signing #517

merged 2 commits into from
May 11, 2022

Conversation

corverroos
Copy link
Contributor

Adds message signing and verification helper functions for qbft consensus,

category: feature
ticket: #445
feature_flag: qbft_consensus

@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #517 (5ce4025) into main (afc71ba) will decrease coverage by 0.33%.
The diff coverage is 55.55%.

❗ Current head 5ce4025 differs from pull request most recent head edfc608. Consider uploading reports for the commit edfc608 to get more accurate results

@@            Coverage Diff             @@
##             main     #517      +/-   ##
==========================================
- Coverage   55.45%   55.12%   -0.34%     
==========================================
  Files          90       90              
  Lines        8318     8345      +27     
==========================================
- Hits         4613     4600      -13     
- Misses       3101     3136      +35     
- Partials      604      609       +5     
Impacted Files Coverage Δ
core/consensus/msg.go 27.17% <55.55%> (+11.78%) ⬆️
core/qbft/qbft.go 77.32% <0.00%> (-6.35%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afc71ba...edfc608. Read the comment docs.

@@ -131,4 +134,41 @@ func hashProto(msg proto.Message) ([32]byte, error) {
return hash, nil
}

// verifyMsgSig returns true if the message with signed by the pubkey.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// verifyMsgSig returns true if the message with signed by the pubkey.
// verifyMsgSig returns true if the message was signed by the same priv key.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label May 11, 2022
@obol-bulldozer obol-bulldozer bot merged commit 6aeb6eb into main May 11, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/qbftsign branch May 11, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants