Skip to content

mixing: Validate RS hashes during blame assignment - #3760

Open
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:validate-rs
Open

mixing: Validate RS hashes during blame assignment#3760
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:validate-rs

Conversation

@jholdstock

Copy link
Copy Markdown
Member

Ensuring that the RS hashes from rs.SeenSecrets actually exist in the current session closes a loophole where a peer could escape blame by simply filling rs.SeenSecrets with junk in order to bypass the len!=0 check.

@jrick

jrick commented Aug 11, 2026

Copy link
Copy Markdown
Member

This looks necessary but we should be stricter about it. If a RS message references both junk and a valid RS message, we should similarly treat the peer as misbehaving, rather than permitting them because at least one of the hashes was valid.

@davecgh davecgh added this to the 2.2.0 milestone Aug 11, 2026
Ensuring that the RS hashes from rs.SeenSecrets actually exist in the
current session closes a loophole where a peer could escape blame by
simply filling rs.SeenSecrets with junk in order to bypass the len!=0
check.
@jholdstock

Copy link
Copy Markdown
Member Author

Done

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