Coder Social home page Coder Social logo

anonymous-tokens's Introduction

Anonymous Tokens (AT)

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.

Problem Statement

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.

  • Trusted Setting (User and Signer): In the first stage, a specific user is in a trusted setting with a party that we denote the signer (also known as the issuer). Here, trust may have been established in a variety of ways (authentication, log-in, etc.). To denote that the user is trusted, the issuer may issue a token to the user.
  • Untrusted Setting (User and Verifier): In the second stage, suppose the user is now in an untrusted setting with another party that we denote the verifier. The user is now able to prove that they were trusted by the issuer through the use of the prior received token. By using a cryptographically secure verification process, the verifier can check that the user was once trusted by the issuer.

At a high level, anonymous tokens provide the following privacy guarantees:

  • Unforgeability: Adversarial users are not able to fabricate tokens that will pass the verification step of the verifier. In particular, if a malicious user interacts with the signer K times, then the user cannot generate K+1 tokens that successfully verify.
  • Unlinkability: Adversarial signers are unable to determine the interaction that created tokens. Suppose a signer has interacted with users 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.

Dependencies

The Private Set Membership library requires the following dependencies:

How to build

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 6.1.2.] (https://docs.bazel.build/versions/master/install.html)

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'

Disclaimers

This is not an officially supported Google product. The software is provided as-is without any guarantees or warranties, express or implied.

anonymous-tokens's People

Contributors

guss123 avatar kwlyeo avatar thibmeu avatar zetafunction avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.