| commit | 10eec00560e6dcea5f45f693d5270d300818df8d | [log] [tgz] |
|---|---|---|
| author | Phillipp Schoppmann <[email protected]> | Wed Oct 22 17:31:48 2025 |
| committer | Copybara-Service <[email protected]> | Wed Oct 22 17:32:17 2025 |
| tree | 74504052e8d82e52210f318c24f243247223cab3 | |
| parent | f2e1593a5a49dc7ae1c7ad7f8229ceefb47e4fe8 [diff] |
Fix benchmarks PiperOrigin-RevId: 822647695
The implementations follow the two IETF standards drafts:
As the standardization process is in progress, we expect the code in this repo to change over time to conform to modifications in the IETF specifications.
Anonymous Tokens (AT) are a cryptographic protocol that enables propagating trust in a cryptographically secure manner while maintaining anonymity. At a high level, trust propagation occurs in a two step manner.
At a high level, anonymous tokens provide the following privacy guarantees:
K times, then the user cannot generate K+1 tokens that successfully verify.K times then and receives one of the resulting signatures at random. Then, the signer cannot determine the interaction resulting in the challenge signature with probability better than random guess of 1/K.The Private Set Membership library requires the following dependencies:
Abseil for C++ common libraries.
Bazel for building the library.
BoringSSL for underlying cryptographic operations.
Google Test for unit testing the library.
Protocol Buffers for data serialization.
In order to run this library, you need to install Bazel, if you don't have it already. Follow the instructions for your platform on the Bazel website. Make sure you are installing version 8.0.1..
Note that you should have JDK 21 installed. It is needed to compile all Java builds as currently a dependency requires this version. This build option has been added to the .bazelrc file and is needed for the build to succeed.
You also need to install Git, if you don't have it already. Follow the instructions for your platform on the Git website.
Once you've installed Bazel and Git, open a Terminal and clone the repository into a local folder.
Navigate into the anonymous-tokens folder you just created, and build the library and dependencies using Bazel. Note, the library must be built using C++17.
cd anonymous-tokens bazel build ... --cxxopt='-std=c++17'
You may also run all tests (recursively) using the following command:
bazel test ... --cxxopt='-std=c++17'
This is not an officially supported Google product. The software is provided as-is without any guarantees or warranties, express or implied.