Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

RCAT Python reference implementation

This serves as an example to implement Randomized Counter-Abuse Token protocol in Python. You can find more details in the RCAT explainer.

Prerequisites

The codebase assumes Python 3.10+.

Install Bazel

  1. Follow the steps to install Bazel.

Clone Github repository

You will need to clone the code locally in order to build or test it.

$ git clone https://github.com/youtube/rcat
$ cd rcat/python

Build

You can build the project using the following command:

rcat/python$ bazel build rcat:rcat_server

Note that this command does not produce a library or other artifact, it is only for ensuring the project compiles in your environment.

Test

You can run all tests with the following command:

rcat/python$ bazel test rcat:*