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

RSA message encryption #1190

Merged
merged 175 commits into from
Nov 9, 2023
Merged

RSA message encryption #1190

merged 175 commits into from
Nov 9, 2023

Conversation

nkryuchkov
Copy link
Contributor

@nkryuchkov nkryuchkov commented Nov 1, 2023

  • BLS verification is replaced with RSA verification in message validation
  • SSVMessage is wrapped in another type with RSA signature and operator ID
  • Minor message validation cleanup
  • Flags for signature checks are removed from message validation
  • Tests for RSA in message validation
  • Tests for RSA sign/verify
  • Benchmarks for RSA & BLS sign & verify

This reverts commit 9658443.
y0sher
y0sher previously approved these changes Nov 8, 2023
MatheusFranco99
MatheusFranco99 previously approved these changes Nov 8, 2023
MatusKysel
MatusKysel previously approved these changes Nov 8, 2023
Copy link
Contributor

@moshe-blox moshe-blox left a comment

Choose a reason for hiding this comment

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

LGTM

just two minor changes (unused code and mainnet fork epoch)


// ConsensusState keeps track of the signers for a given public key and role.
type ConsensusState struct {
// TODO: consider evicting old data to avoid excessive memory consumption
Copy link
Contributor

@moshe-blox moshe-blox Nov 8, 2023

Choose a reason for hiding this comment

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

@y0sher @nkryuchkov eviction should probably be done in the parent map which holds all ConsensusState instances, because it'd also evict this and the map keys there have far higher # of combinations (Pubkey + Role vs just OperatorID)

network/commons/common.go Outdated Show resolved Hide resolved
networkconfig/mainnet.go Outdated Show resolved Hide resolved
MatusKysel
MatusKysel previously approved these changes Nov 9, 2023
moshe-blox
moshe-blox previously approved these changes Nov 9, 2023
MatheusFranco99
MatheusFranco99 previously approved these changes Nov 9, 2023
y0sher
y0sher previously approved these changes Nov 9, 2023
cli/operator/node.go Outdated Show resolved Hide resolved
@liorrutenberg liorrutenberg merged commit 1eefbd9 into stage Nov 9, 2023
5 checks passed
@liorrutenberg liorrutenberg deleted the libp2p-rsa-custom-enc branch November 9, 2023 13:10
@moshe-blox moshe-blox mentioned this pull request Nov 22, 2023
12 tasks
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.

7 participants