Skip to content

feat: update handler and middleware to allow no sig on keys message and no check on decryption trigger #623

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

blockchainluffy
Copy link
Contributor

closes #620

@blockchainluffy blockchainluffy self-assigned this Aug 5, 2025
@blockchainluffy blockchainluffy marked this pull request as draft August 5, 2025 09:14
Copy link
Contributor

@jannikluhn jannikluhn left a comment

Choose a reason for hiding this comment

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

The two changes (signatures on keys messages and current decryption trigger check) seem unrelated, I think they should be done in separate PRs (or at least separate commits).

@@ -177,48 +177,6 @@ func validateSignerIndices(extra *p2pmsg.ShutterServiceDecryptionKeysExtra, n in
return pubsub.ValidationAccept, nil
}

func ValidateDecryptionKeysSignatures(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's a bit safer to still validate the signatures as normal if they are there, but allow for messages that have empty signer indices and signatures. We probably don't want to allow for invalid signatures in messages.

@blockchainluffy blockchainluffy force-pushed the test/allow-keys-msg-no-sig branch from 260eccb to d4c3a50 Compare August 7, 2025 06:28
@blockchainluffy blockchainluffy marked this pull request as ready for review August 7, 2025 06:35
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.

Allow keys message with no signature and remove current decryption trigger validation
2 participants