Skip to content

Commit

Permalink
Update proofs.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Derrick-Wan authored and yycen committed Aug 1, 2023
1 parent b19124e commit cfa1c5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crypto/mta/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func ProveBobWC(ec elliptic.Curve, pk *paillier.PublicKey, NTilde, h1, h2, c1, c
q := ec.Params().N
q3 := new(big.Int).Mul(q, q)
q3 = new(big.Int).Mul(q, q3)
q7 := new(big.Int).Mul(q3, q3)
q7 = new(big.Int).Mul(q7, q)
qNTilde := new(big.Int).Mul(q, NTilde)
q3NTilde := new(big.Int).Mul(q3, NTilde)

Expand All @@ -62,7 +64,8 @@ func ProveBobWC(ec elliptic.Curve, pk *paillier.PublicKey, NTilde, h1, h2, c1, c

// 4.
beta := common.GetRandomPositiveRelativelyPrimeInt(pk.N)
gamma := common.GetRandomPositiveRelativelyPrimeInt(pk.N)

gamma := common.GetRandomPositiveInt(q7)

// 5.
u := crypto.NewECPointNoCurveCheck(ec, zero, zero) // initialization suppresses an IDE warning
Expand Down

0 comments on commit cfa1c5f

Please sign in to comment.