Fix error causing proof verification failure
This commit is contained in:
parent
4240fa3377
commit
a20300ab62
|
@ -16,8 +16,6 @@ new Lox credential. The user does not receive a response.
|
|||
Due to the way the level proof is implemented, this protocol has
|
||||
hardcoded assumptions that the level is 3-4.
|
||||
|
||||
Right now, this doesn't work.
|
||||
|
||||
*/
|
||||
|
||||
use curve25519_dalek::ristretto::{RistrettoBasepointTable, RistrettoPoint};
|
||||
|
@ -180,7 +178,7 @@ pub fn request(
|
|||
*/
|
||||
|
||||
// Construct the proof
|
||||
let mut transcript = Transcript::new(b"proof of level 3 cred");
|
||||
let mut transcript = Transcript::new(b"positive report request");
|
||||
let piUser = requestproof::prove_compact(
|
||||
&mut transcript,
|
||||
requestproof::ProveAssignments {
|
||||
|
@ -272,7 +270,6 @@ impl BridgeAuth {
|
|||
// Recompute CG
|
||||
// let CG = req.CLevel - Scalar::from(3 as u8) * req.P;
|
||||
|
||||
// TODO: Failure happens in verify_compact
|
||||
// Verify the zkp
|
||||
let mut transcript = Transcript::new(b"positive report request");
|
||||
requestproof::verify_compact(
|
||||
|
|
Loading…
Reference in New Issue