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

WGPS: Setup phase #14

Merged
merged 3 commits into from
Mar 15, 2024
Merged

WGPS: Setup phase #14

merged 3 commits into from
Mar 15, 2024

Conversation

sgwilym
Copy link
Contributor

@sgwilym sgwilym commented Mar 13, 2024

This PR makes the WgpsMessenger capable of sending and handling setup messages. During setup, two peers exchange (and validate) capabilities, areas of interest, and send static tokens which will be used for exchanging entries later on.

WgpsMessengerOpts now includes an interests. This is a mapping of ReadAuthorisation to many AreaOfInterest. After PSI is carried out, the messenger transmits the intersecting capability via SetupBindReadCapability, and then all of its corresponding AreaOfInterest via SetupBindAreaOfInterest messages. When it receives these same messages from the other peer, it validates the capability / area of interest + signatures and binds the data to a corresponding handle.

HandleStore now has an async getEventually method. This is used for requesting handles which are transmitted by a different channel, and so which may not have been processed or received yet.

MessageEncoder and decodeMessages have been refactored to allow for encoding/decoding using information not contained within an encoded message. For instance, the outer area to decode an encoded relative inner area against.

PaiFinder now has a getIntersectionPrivy method. This is to retrieve data both sides are privy to (i.e. namespace, outer area) via an intersection.

sgwilym added 3 commits March 6, 2024 17:31
Add testSchemeAccessControl
Add support for capability channel + handles
Parameter reorganisation
PaiFinder can retrieve info both sides privy to using a handle
@sgwilym sgwilym merged commit 7f593ee into main Mar 15, 2024
1 check passed
@sgwilym sgwilym deleted the setup branch March 15, 2024 11:20
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