Be consistent about the ordering of the parameters in the ZKPs
Particularly D
This commit is contained in:
parent
74bae2cf8e
commit
4bb77d16e4
|
@ -117,11 +117,11 @@ define_proof! {
|
||||||
V_mig = (zfrombucket*Xfrombucket + ztobucket*Xtobucket + negzQ_mig*A),
|
V_mig = (zfrombucket*Xfrombucket + ztobucket*Xtobucket + negzQ_mig*A),
|
||||||
// User blinding of the Lox credential to be issued; note the use of
|
// User blinding of the Lox credential to be issued; note the use of
|
||||||
// the same "tobucket" secret variable
|
// the same "tobucket" secret variable
|
||||||
|
D = (d*B),
|
||||||
EncIdClient0 = (eid_client*B),
|
EncIdClient0 = (eid_client*B),
|
||||||
EncIdClient1 = (id_client*B + eid_client*D),
|
EncIdClient1 = (id_client*B + eid_client*D),
|
||||||
EncBucket0 = (ebucket*B),
|
EncBucket0 = (ebucket*B),
|
||||||
EncBucket1 = (tobucket*B + ebucket*D),
|
EncBucket1 = (tobucket*B + ebucket*D)
|
||||||
D = (d*B)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
define_proof! {
|
define_proof! {
|
||||||
|
|
|
@ -62,11 +62,11 @@ define_proof! {
|
||||||
userblinding,
|
userblinding,
|
||||||
"Open Invitation User Blinding",
|
"Open Invitation User Blinding",
|
||||||
(d, eid_client, id_client),
|
(d, eid_client, id_client),
|
||||||
(EncIdClient0, EncIdClient1, D),
|
(D, EncIdClient0, EncIdClient1),
|
||||||
(B) :
|
(B) :
|
||||||
|
D = (d*B),
|
||||||
EncIdClient0 = (eid_client*B),
|
EncIdClient0 = (eid_client*B),
|
||||||
EncIdClient1 = (id_client*B + eid_client*D),
|
EncIdClient1 = (id_client*B + eid_client*D)
|
||||||
D = (d*B)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The issuing ZKP
|
// The issuing ZKP
|
||||||
|
@ -113,9 +113,9 @@ pub fn request(invite: &[u8; OPENINV_LENGTH]) -> (Request, State) {
|
||||||
&mut transcript,
|
&mut transcript,
|
||||||
userblinding::ProveAssignments {
|
userblinding::ProveAssignments {
|
||||||
B: &B,
|
B: &B,
|
||||||
|
D: &D,
|
||||||
EncIdClient0: &EncIdClient.0,
|
EncIdClient0: &EncIdClient.0,
|
||||||
EncIdClient1: &EncIdClient.1,
|
EncIdClient1: &EncIdClient.1,
|
||||||
D: &D,
|
|
||||||
d: &d,
|
d: &d,
|
||||||
eid_client: &eid_client,
|
eid_client: &eid_client,
|
||||||
id_client: &id_client,
|
id_client: &id_client,
|
||||||
|
|
|
@ -123,7 +123,7 @@ define_proof! {
|
||||||
wg0, wg1, wg2, wg3, wg4, wg5, wg6, wg7, wg8,
|
wg0, wg1, wg2, wg3, wg4, wg5, wg6, wg7, wg8,
|
||||||
yg0, yg1, yg2, yg3, yg4, yg5, yg6, yg7, yg8),
|
yg0, yg1, yg2, yg3, yg4, yg5, yg6, yg7, yg8),
|
||||||
(P, CBucket, CSince, V, Xbucket, Xsince,
|
(P, CBucket, CSince, V, Xbucket, Xsince,
|
||||||
EncBucket0, EncBucket1, D,
|
D, EncBucket0, EncBucket1,
|
||||||
CG0, CG1, CG2, CG3, CG4, CG5, CG6, CG7, CG8,
|
CG0, CG1, CG2, CG3, CG4, CG5, CG6, CG7, CG8,
|
||||||
CG0sq, CG1sq, CG2sq, CG3sq, CG4sq, CG5sq, CG6sq, CG7sq, CG8sq),
|
CG0sq, CG1sq, CG2sq, CG3sq, CG4sq, CG5sq, CG6sq, CG7sq, CG8sq),
|
||||||
(A, B):
|
(A, B):
|
||||||
|
@ -132,9 +132,9 @@ define_proof! {
|
||||||
CSince = (since*P + zsince*A),
|
CSince = (since*P + zsince*A),
|
||||||
V = (zbucket*Xbucket + zsince*Xsince + negzQ*A),
|
V = (zbucket*Xbucket + zsince*Xsince + negzQ*A),
|
||||||
// User blinding of the Migration Key credential
|
// User blinding of the Migration Key credential
|
||||||
|
D = (d*B),
|
||||||
EncBucket0 = (ebucket*B),
|
EncBucket0 = (ebucket*B),
|
||||||
EncBucket1 = (bucket*B + ebucket*D),
|
EncBucket1 = (bucket*B + ebucket*D),
|
||||||
D = (d*B),
|
|
||||||
// Prove CSince encodes a value at least UNTRUSTED_INTERVAL
|
// Prove CSince encodes a value at least UNTRUSTED_INTERVAL
|
||||||
// days ago (and technically at most UNTRUSTED_INTERVAL+511 days
|
// days ago (and technically at most UNTRUSTED_INTERVAL+511 days
|
||||||
// ago): first prove each of g0, ..., g8 is a bit by proving that
|
// ago): first prove each of g0, ..., g8 is a bit by proving that
|
||||||
|
@ -303,9 +303,9 @@ pub fn request(
|
||||||
V: &V,
|
V: &V,
|
||||||
Xbucket: &lox_pub.X[2],
|
Xbucket: &lox_pub.X[2],
|
||||||
Xsince: &lox_pub.X[4],
|
Xsince: &lox_pub.X[4],
|
||||||
|
D: &D,
|
||||||
EncBucket0: &EncBucket.0,
|
EncBucket0: &EncBucket.0,
|
||||||
EncBucket1: &EncBucket.1,
|
EncBucket1: &EncBucket.1,
|
||||||
D: &D,
|
|
||||||
CG0: &CG0,
|
CG0: &CG0,
|
||||||
CG1: &CG1,
|
CG1: &CG1,
|
||||||
CG2: &CG2,
|
CG2: &CG2,
|
||||||
|
@ -460,9 +460,9 @@ impl BridgeAuth {
|
||||||
V: &Vprime.compress(),
|
V: &Vprime.compress(),
|
||||||
Xbucket: &self.lox_pub.X[2].compress(),
|
Xbucket: &self.lox_pub.X[2].compress(),
|
||||||
Xsince: &self.lox_pub.X[4].compress(),
|
Xsince: &self.lox_pub.X[4].compress(),
|
||||||
|
D: &req.D.compress(),
|
||||||
EncBucket0: &req.EncBucket.0.compress(),
|
EncBucket0: &req.EncBucket.0.compress(),
|
||||||
EncBucket1: &req.EncBucket.1.compress(),
|
EncBucket1: &req.EncBucket.1.compress(),
|
||||||
D: &req.D.compress(),
|
|
||||||
CG0: &CG0prime.compress(),
|
CG0: &CG0prime.compress(),
|
||||||
CG1: &req.CG1.compress(),
|
CG1: &req.CG1.compress(),
|
||||||
CG2: &req.CG2.compress(),
|
CG2: &req.CG2.compress(),
|
||||||
|
|
Loading…
Reference in New Issue