Skip to content

Fix Arbitrary batched tokens structures description #19

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

Merged
Changes from all 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
19 changes: 8 additions & 11 deletions draft-ietf-privacypass-batched-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,14 @@ struct {

The structure fields are defined as follows:

- "token_type" is a 2-octet integer. TokenRequest MUST be prefixed with a uint16
"token_type" indicating the token type. The rest of the structure follows
based on that type, within the inner opaque token_request attribute. The above
definition corresponds to TokenRequest from {{RFC9578}}. For TokenRequest not
defined in {{RFC9578}}, they MAY be used as long as they are prefixed with a
2-octet token_type.

- "token_requests" are serialized TokenRequests, in network byte order. The
number of token_requests, as a 2-octet integer, is prepended to the serialized
TokenRequests. In addition, the 2-octet integer length of each TokenRequest is
prepended to the serialized TokenRequests.
- TokenRequest's "token_type" is a 2-octet integer. TokenRequest MUST always start
with a uint16 "token_type" indicating the token type. The rest of the
structure follows based on that type, within the inner opaque token_request
attribute. The above definition corresponds to TokenRequest from {{RFC9578}}.
A TokenRequest with a token type not defined in {{RFC9578}} MAY be used but
MUST always start with a 2-octet token_type.

- "token_requests" is an array of TokenRequest satisfying the above constraint.


The Client then generates an HTTP POST request to send to the Issuer Request
Expand Down
Loading