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

Discuss issued and presented forms of JPTs #135

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions draft-ietf-jose-json-proof-token.md
Original file line number Diff line number Diff line change
@@ -128,25 +128,32 @@ The following is an example JWP Protected Header that includes a `cid`:

<{{./fixtures/template/jpt-issuer-protected-header-with-cid.json}}

# Payloads
# Presented Claims and Proofs

> Editor's Note: This section is incomplete. Use it only as an indicator of the intended direction.

Application resolves each claim as required when processing the JPT. Resolution can result in one of three things:
1. A disclosed JSON value
2. A custom proof method
3. A `null` value
Each claim in the issued form of the JPT results in one of three things in the presented form of the JPT:
1. A disclosed JSON value.
1. An indicator that the value was not disclosed.
1. An algorithm-specific proof method.

## Disclosed

Always an octet string of valid JSON text.
A disclosed payload is represented as a base64url-encoded UTF-encoded octet string
representing a valid JSON value.
selfissued marked this conversation as resolved.
Show resolved Hide resolved

## Undisclosed

The placeholder indicating that a payload was not disclosed is represented as
a `null` value for the JWP JSON Serialization
or the empty string value for the JWP Compact Serialization.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Recommend we leave this to the core JWP spec. I'm specifically trying to consolidate special cases like this under the serialization rules.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the text to reference the representation in JWP rather than repeating it.


## Proof Methods

* proof methods can be returned instead of a disclosed payload
* these are generated by the algorithm from information in the JWP's proof value
* a proof method may be custom based on the capabilities of the algorithm
* define common proof method types available?
Proof methods can be returned instead of a disclosed payload.
These are generated in an algorithm-specific manner from information in the JWP's proof value.

A proof method may be custom based on the capabilities of the algorithm.

* TBD: Describe common proof method types available?
* range
* membership
* time
@@ -205,6 +212,7 @@ for his valuable contributions to this specification.
[[ To be removed from the final specification ]]

* Update reference to new repository home
* Fixed #99: Discussed issued and presented forms of JPTs.

-05

Loading