Skip to content

statement-store: Implement explicit affinity#3151

Open
AndreiEres wants to merge 22 commits intomainfrom
ae-statement-protocol-v2
Open

statement-store: Implement explicit affinity#3151
AndreiEres wants to merge 22 commits intomainfrom
ae-statement-protocol-v2

Conversation

@AndreiEres
Copy link
Copy Markdown
Contributor

@AndreiEres AndreiEres commented Mar 31, 2026

Fixes paritytech/polkadot-sdk#11287

Implements explicit topic affinity for the statement protocol V2 using bloom filters.

  • Bloom filter codec with portable cross-platform hashing (wasm32/native)
  • V2 wire format: statements (0x00) and affinity (0x01) message types
  • Light client sends affinity filter on peer connect and on subscription changes (debounced 1s)
  • False positives discarded locally via TopicFilter::matches
  • falsePositiveRate and bloomSeed configurable per chain

@AndreiEres AndreiEres force-pushed the ae-statement-protocol-v2 branch from a7b2e75 to e7c8920 Compare March 31, 2026 14:06
@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 31, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​fastbloom@​0.17.010010093100100

View full report

@AndreiEres AndreiEres changed the title [WIP] Add bloom filters statement-store: Implement explicit affinity Apr 1, 2026
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.

statement-store: Implement Bloom Filters for light nodes

1 participant