Skip to content

Commit

Permalink
fix(crs : align with load tester updates): hex::decode
Browse files Browse the repository at this point in the history
In proof systems, provers and the verifiers rely on a common set of parameters, sometimes referred to as the common reference string (CRS).

we are using the the DigestOf<Blake2b256, VotePlan>; as the CRS
  • Loading branch information
cong-or committed Nov 17, 2023
1 parent 1243263 commit 359fb64
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sign/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// join sk+pk together, api requirement
sk.extend(pk.clone());
let keypair: Keypair = Keypair::from_bytes(&sk)?;

// vote
let vote = chain_vote::Vote::new(2, 1_usize)?;

// common reference string
let crs = chain_vote::Crs::from_hash(&hex::decode(args.vote_plan_id.clone())?);

Expand Down

0 comments on commit 359fb64

Please sign in to comment.