Skip to content

Zero-Knowledge Proof implementation for verifying that a private secret share key corresponds to a given public keys in the ECDH protocol.

Notifications You must be signed in to change notification settings

Foulks-Plb/ZKP-ECDH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECDH ZKP

This code implements a zero-knowledge proof (ZKP) circuit designed to verify the correct generation of a shared secret key from Ethereum addresses on-chain.

Operations

  1. Multiply the private key by the generator point G to obtain pub_key_xy.
  2. Convert pub_key_xy to an address addressA and verify it matches address1.
  3. Convert the coordinates pub_key_x2, pub_key_y2 to an address addressB and verify it matches address2.
  4. Multiply the private key by (pub_key_x2, pub_key_y2) to obtain secret_share_xy and verify it matches secret_share_x and secret_share_y.

Information

Package Function Expression Width ACIR Opcodes
ECDH main Bounded { width: 4 } 1,592,841

About

Zero-Knowledge Proof implementation for verifying that a private secret share key corresponds to a given public keys in the ECDH protocol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages