Private State Token DEMO
These demos use PrivateStateTokenV1VOPRF of the Private State Token API for issuance and redemption and BoringSSL to create an issuance service.
How to run the demos
Setup Chrome for enable Private State Token API & Register key-commitment of Issuer
$ open -a Google\ Chrome \ --args \ --enable-features=PrivateStateTokens,PrivateStateTokensAlwaysAllowIssuance,PrivacySandboxSettings3 \ --additional-private-state-token-key-commitments='{ "https://private-state-token-issuer.glitch.me": { "PrivateStateTokenV1VOPRF": { "protocol_version": "PrivateStateTokenV1VOPRF", "id": 1, "batchsize": 1, "keys": { "1": { "Y": "AAAAAQQ7W5gOubJT3kTpzNGsekT9RZPXgXGrOMB2+QPw/ZzAuLrM3kc8eyHuTc1KmKjH4sh5+ev5GCI4HVVd46o6rWvNvk0iZQtVuUPhT8X54Ajebng8v5zUnpnPuTjGqlc7+MM=", "expiry": "1715356984440000" } } } } }'
- Open the 🛂 Private State Token Redeemer demo with Chrome
- Click a "click continue to read"
- If your browser doesn't have a token, click a link to 🎫 Private State Token Issuer demo.
- Click a Yes I'm a Human to issue a new token
- Redirect back to Redeemer
- Click a "click continue to read" again, then you can read more !
Source Code
- JackJey/private-state-token-demo
- This is not a Google product.