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

Private area intersection #13

Merged
merged 13 commits into from
Feb 29, 2024
Merged

Private area intersection #13

merged 13 commits into from
Feb 29, 2024

Conversation

sgwilym
Copy link
Contributor

@sgwilym sgwilym commented Feb 29, 2024

This PR makes the WgpsMessenger class capable of private area intersection.

Added a new PaiFinder class. When this class is given a read authorisation (e.g. a read capability or read capability + subspace capability), it is able to transform these into fragments and submit these for private set intersection. This class is also able to request and reply with subspace capabilities when the need arises.

Added a new HandleStore class. This class is able to bind data to handles, and provides the necessary primitives to safely free those handles (using reference counting) when needed.

Added a new GuaranteedQueue class. This can have bytes pushed onto it which are only emitted when the queue is given an amount of guarantees (in bytes) that the data can actually be accepted. It is also able to hear the pleas of foolish servers who guaranteed too many bytes, and always absolves them.

Added streaming decoding for all control and intersection messages, powered by a new GrowingBytes class (in willow-utils).

WgpsMessenger has been updated to coordinate the new intersection channel, intersection handle store, PaiFinder, initial read authorisations, and incoming messages.

Last but not least, test schemes have been unified so that all tests share the same (interoperable) parameters.

@sgwilym sgwilym merged commit cd0c1cb into main Feb 29, 2024
1 check passed
@sgwilym sgwilym deleted the pai branch February 29, 2024 15:57
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.

1 participant