Skip to content

AdityaKoranga/zkSnarks-Proving-random-bits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Knowledge Proof: Proving Random Bits

Using zkSnarks to prove random bits between Peggy and Victor

Used Zokrates library for implementing zkSnarks.

Steps performed

  • Victor performed the computation of the main reveal_bit.zok file and put the output in a reveal_bit_by_Victorfile.
  • Then performed setup to create the proving key and verification_key.
  • Copying this proving key in Peggy's directory.

  • Peggy now compiled the main reveal_bit.zok file and put the output in a reveal_bit_by_Peggy file.
  • Peggy then computed a witness.
  • Then created a proof using witness , Victor's proving key and the compiled program.
  • Now Victor verifies this proof using his verification key.

Zokrates use Groth16 proving scheme as default.


About

using zkSnarks proving random bits between Peggy and Victor .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published