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

handle gateway info metadata struct #424

Closed
wants to merge 1 commit into from

Conversation

andymck
Copy link
Contributor

@andymck andymck commented Mar 30, 2023

*** NOTE *** this has a dep on a yet to be created proto branch which will return a gateway metadata struct containing asserted related fields. Until that proto is available it maps the existing gateway info proto to a newly updated internal GatewayInfo struct.

With this change, when resolving gateway info for a beaconer or a witness, we only return the gateway info if it contains the expected asserted related fields. These will be contained within an Option field of gateway info, if this is None it is assumed the gateway is not yet asserted and an appropriate error is returned.

The verifier will only proceed to verifying a beacon or witness if the asserted data is available, otherwise a verification fail is returned immediately.

@andymck andymck force-pushed the andymck/handle-gateway-info-metadata branch from 04019c5 to c648d31 Compare April 3, 2023 09:51
@andymck andymck marked this pull request as ready for review April 3, 2023 09:56
@andymck
Copy link
Contributor Author

andymck commented Apr 7, 2023

superseded by #428

@andymck andymck closed this Apr 7, 2023
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