Skip to content

Commit

Permalink
docs(ecdh): update function comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed May 14, 2024
1 parent 82c49cb commit a1809aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/ecdh/src/ecdh.circom
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ include "./bitify.circom";
include "./escalarmulany.circom";

// ECDH Is a a template which allows to generate a shared secret
// from a private key and a public key
// on the baby jubjub curve
// from a private key and a public key on the baby jubjub curve
// It is important that the private key is hashed and pruned first
// which can be accomplished using the function
// deriveScalar from @zk-kit/baby-jubjub
// deriveSecretScalar from @zk-kit/eddsa-poseidon.
template Ecdh() {
// the private key must pass through deriveScalar first
signal input privateKey;
Expand Down

0 comments on commit a1809aa

Please sign in to comment.