Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 | 1 year ago | |
---|---|---|
.. | ||
resources | 1 year ago | |
README.md | 1 year ago | |
__init__.py | 1 year ago | |
trust-token-api-e2e.https.html | 1 year ago |
The trust token WPTs in this directory are JavaScript tests that interact with a Python implementation of a trust token issuer.
Python file handlers implement the server-side logic for trust token issuance and redemption.
The supported issuer protocol is TrustTokenV3VOPRF
.
Please refer to the trust token API explainer for details about the API.
wpt_internal/trust-tokens/
. When trust tokens are implemented by other browser vendors, these files can be transitioned to third_party/blink/web_tests/external/wpt/trust-tokens/
The key commitment and other arguments to the test runner are defined in third_party/blink/web_tests/VirtualTestSuites
. The contents of the key commitment are as follows:
{
"https://web-platform.test:8444": {
"TrustTokenV3VOPRF": {
"protocol_version": "TrustTokenV3VOPRF",
"id": 1,
"batchsize": 1,
"keys": {
"0": {
"Y": "AAAAAASqh8oivosFN46xxx7zIK10bh07Younm5hZ90HgglQqOFUC8l2/VSlsOlReOHJ2CrfJ6CG1adnTkKJhZ0BtbSPWBwviQtdl64MWJc7sSg9HPvWfTjDigX5ihbzihG8V8aA=",
// The timestamp here is equivalent to
// Friday, December 31, 9999 11:59:59 PM GMT
"expiry": "253402300799000000"
}
}
}
}
}
resources/hash_to_field.py
resources/trust_token_issuance.py
Sec-Trust-Token
header by the browser and is not accessible to JavaScriptresources/trust_token_redemption.py
Sec-Trust-Token
header by the browserresources/trust_token_send_redemption_record.py
send-redemption-record
requestsSec-Redemption-Record
headerresources/trust_token_voprf.py
trust-token-api-e2e.https.html
token-request
, token-redemption
, and send-redemption-record
The WPTs run as virtual tests. This enables the issuer’s key commitment to be passed to Chromium via a command line argument.
# Build web tests
autoninja -C out/Default blink_tests
# Run a single test
third_party/blink/tools/run_web_tests.py -t Default virtual/trust-tokens/wpt_internal/trust-tokens/trust-token-api-e2e.https.html
See the web tests doc for more details on using the test runner.