diff --git a/src/sign/README.md b/src/sign/README.md index 59f22c2076..b7436cc19b 100644 --- a/src/sign/README.md +++ b/src/sign/README.md @@ -22,7 +22,7 @@ Generates vote fragments and signs them accordingly cargo build --release -p sign ``` -*Generate raw vote fragment in byte representation* +*Generate raw vote fragment in byte representation using original jorm implementation* ```bash @@ -37,4 +37,21 @@ CHOICE=1 ./target/release/sign v1 --election-pub-key $ELECTION_PUB_KEY --private-key $ALICE_SK --public-key $ALICE_PK --proposal $PROPOSAL --vote-plan-id $VOTE_PLAN_ID --epoch $EPOCH --slot $SLOT --choice $CHOICE +``` + +*Generate raw vote fragment in byte representation using original `catalyst-voting` crate* + +```bash + +ELECTION_PUB_KEY=ristretto255_votepk1ppxnuxrqa4728evnp2ues000uvwvwtxmtf77ejc29lknjuqqu44s4cfmja +ALICE_SK=56e367979579e2ce27fbd305892b0706b7dede999a534a864a7430a5c6aefd3c +ALICE_PK=ea084d2d80ed0ab681333d934efc56df3868d13d46a2de3b7f27f40b62e5344d +PROPOSAL=5 +VOTE_PLAN_ID=36ad42885189a0ac3438cdb57bc8ac7f6542e05a59d1f2e4d1d38194c9d4ac7b +EPOCH=0 +SLOT=0 +CHOICE=1 + +./target/release/sign v2 --election-pub-key $ELECTION_PUB_KEY --private-key $ALICE_SK --public-key $ALICE_PK --proposal $PROPOSAL --vote-plan-id $VOTE_PLAN_ID --epoch $EPOCH --slot $SLOT --choice $CHOICE + ``` \ No newline at end of file