Skip to content

Commit 22ae80d

Browse files
committed
update readme
1 parent 9dd4140 commit 22ae80d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/sign/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Generates vote fragments and signs them accordingly
2222
cargo build --release -p sign
2323
```
2424

25-
*Generate raw vote fragment in byte representation*
25+
*Generate raw vote fragment in byte representation using original jorm implementation*
2626

2727
```bash
2828

@@ -37,4 +37,21 @@ CHOICE=1
3737

3838
./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
3939

40+
```
41+
42+
*Generate raw vote fragment in byte representation using original `catalyst-voting` crate*
43+
44+
```bash
45+
46+
ELECTION_PUB_KEY=ristretto255_votepk1ppxnuxrqa4728evnp2ues000uvwvwtxmtf77ejc29lknjuqqu44s4cfmja
47+
ALICE_SK=56e367979579e2ce27fbd305892b0706b7dede999a534a864a7430a5c6aefd3c
48+
ALICE_PK=ea084d2d80ed0ab681333d934efc56df3868d13d46a2de3b7f27f40b62e5344d
49+
PROPOSAL=5
50+
VOTE_PLAN_ID=36ad42885189a0ac3438cdb57bc8ac7f6542e05a59d1f2e4d1d38194c9d4ac7b
51+
EPOCH=0
52+
SLOT=0
53+
CHOICE=1
54+
55+
./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
56+
4057
```

0 commit comments

Comments
 (0)