Supplementary code for "Practical Sanitization for TFHE", based on TFHE-go. Go 1.18+ is required to run this code.
You can run tests using standard Go testing tool:
$ go test .
This runs sanitization on 100 random ciphertexts.
You can also benchmark the base TFHE bootstrapping, our sanitization algorithm, and soak-spin-repeat sanitization using standard Go benchmark tool:
$ go test . -run=^$ -bench=.