Skip to content

Arbitrary batched tokens#33

Merged
thibmeu merged 3 commits intocloudflare:mainfrom
thibmeu:arbitrary-batched-tokens
Mar 5, 2025
Merged

Arbitrary batched tokens#33
thibmeu merged 3 commits intocloudflare:mainfrom
thibmeu:arbitrary-batched-tokens

Conversation

@thibmeu
Copy link
Copy Markdown
Contributor

@thibmeu thibmeu commented Jan 27, 2025

Implementation of arbitrary batched tokens. It passes the test vectors generated in Go.

@thibmeu thibmeu force-pushed the arbitrary-batched-tokens branch from 5d318af to d6a6224 Compare February 27, 2025 09:08
@thibmeu thibmeu changed the title [Do not merge] Arbitrary batched tokens Arbitrary batched tokens Feb 27, 2025
@thibmeu
Copy link
Copy Markdown
Contributor Author

thibmeu commented Feb 28, 2025

@thibmeu this implemetation does not match the draft. Vectors are not all prefixed with a fixed uint16 length. Some use RFC 9000 varint.

EDIT: I have updated the test vectors, the go implementation, and this implementation to use RFC 9000 varint. I have published the varint implementation as a dedicated package quicvarint, it's quite self contained.

@thibmeu thibmeu force-pushed the arbitrary-batched-tokens branch 2 times, most recently from f178a4d to b3b7563 Compare March 4, 2025 08:30
thibmeu added 2 commits March 5, 2025 15:43
Tests are passing test vectors

I have not implemented batched private tokens, which are left out

The API could be improved, but it is unclear yet as to how

Fix lint

Update arbitrary token implementation to use rfc 9000 varint

The initial implementation was using an outdated version of the draft.
@thibmeu thibmeu force-pushed the arbitrary-batched-tokens branch from b3b7563 to 13e2c90 Compare March 5, 2025 14:44
@thibmeu thibmeu merged commit df038a1 into cloudflare:main Mar 5, 2025
3 of 4 checks passed
@thibmeu thibmeu deleted the arbitrary-batched-tokens branch March 1, 2026 20:16
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.

2 participants