This directory contains sage implementation of PLUME.
To streamline demonstration of PLUME
usage in Noir
, we attach the below scripts.
Generates random 32-byte values of r
and sk
, random message-length dependent msg
and computes other necessary information
for ZKP issuing.
Comments out the code in /crates/use/src/main.nr
enabling either v1
or v2
version.
Changes MSG_LEN
constant in crates/plume/src/constants.nr
.
Install SageMath by following these instructions.
Select the version of plume you want to run: either "v1" or "v2", then the number of bytes for msg (non-negative number) and run main.sage
supplying these as CLI arguments, for example:
python3 -m venv ./venv
source venv/bin/activate
python3 -m pip install xyz
deactivate
sage main.sage v2 5