coinbase / kryptology

Apache License 2.0
855 stars 125 forks source link

Bulletproof failed on all other curves #67

Open kitounliu opened 2 years ago

kitounliu commented 2 years ago

I was testing bulletproof with different curves such as bls12381 and it doesn't work. In the tests range_verifier_test.go and range_batch_verifier_test.go in pkg/bulletproof, when replacing curve := curves.ED25519() with other curves, such as curve := curves.BLS12381G1(), curve := curves.P256(), curve := curves.BLS12377G1(), the verifier.Verify(proof, capV, proofGenerators, n, transcriptVerifier) function fails.