cloudflare / cloudflare/privacypass-ts

Add dedicated test vectors for response token headers

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
48
Forks
16
Avg merge
7h 52m
Merged PRs (30d)
2

Description

The test suites import test vectors for request and response tokens. The request tokens clearly specify the expected serialisation with `PrivateToken challenge=...,token-key=...`.

This is not the case for response tokens. These are tested based on the expected behaviour that serializing and deserializing a given token is similar to applying the identity, and should result in the same token.
For more robust tests, it would be good to have these as dedicated tests vectors.

Related to #11.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing request-token test vectors and the tests that serialize and deserialize response tokens. Add dedicated response-token vectors that state the expected header serialization, then verify the response-token tests compare serialization and deserialization against those vectors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cryptography
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.