Skip to content

Add selective disclosure example and conversion pseudo code#572

Open
PatStLouis wants to merge 1 commit intomainfrom
add-selective-disclosure-example
Open

Add selective disclosure example and conversion pseudo code#572
PatStLouis wants to merge 1 commit intomainfrom
add-selective-disclosure-example

Conversation

@PatStLouis
Copy link
Collaborator

@PatStLouis PatStLouis commented Dec 16, 2025

Addresses #545


Preview | Diff

Signed-off-by: Patrick St-Louis <patrick.st-louis@opsecid.ca>
FOR EACH pointer IN pointers:
is_deep = true
FOR EACH p IN pointers:
IF length(pointer) < length(p) AND p starts with pointer:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that GitHub highlighting acts on the < preceding length(p). This might need to be &lt;.

Comment on lines +1281 to +1282
When implementing [=selective disclosure=] features, it is often necessary to
convert a QueryByExample `example` object into a list of JSON pointers that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When implementing [=selective disclosure=] features, it is often necessary to
convert a QueryByExample `example` object into a list of JSON pointers that
When implementing [=selective disclosure=] features, it is necessary to
convert a QueryByExample `example` object into a list of JSON pointers that

@PatStLouis
Copy link
Collaborator Author

Group discussed this on a call, will need to review the pseudo code and favor an "algorithm" spec section instead. This should be inspired by this issue: #574

@dlongley
Copy link
Contributor

I need to do a more robust review, but looking at least at the prose steps here they looked right to me. I did want to note that I think the way pointers are generated for selective disclosure will be different from how they are generated for matching (and that's ok) -- there will just be two different algorithms aimed at different purposes.

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.

4 participants