Remove non-implicit invremain attribute fields
This commit is contained in:
parent
3b2ee73bab
commit
96a03f1a27
|
@ -2479,8 +2479,8 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zkp"
|
name = "zkp"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
source = "git+https://gitlab.torproject.org/onyinyang/lox-zkp#0210f272211bd9a4000e3ee9dd9358316b0a8d0c"
|
source = "git+https://gitlab.torproject.org/onyinyang/lox-zkp#7dc7562ecdac3a6c7c7ecc31cace192174d34778"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"curve25519-dalek",
|
"curve25519-dalek",
|
||||||
"merlin",
|
"merlin",
|
||||||
|
|
|
@ -98,7 +98,6 @@ pub struct Response {
|
||||||
// The new attributes; the trust_level and invites_remaining are
|
// The new attributes; the trust_level and invites_remaining are
|
||||||
// implicit
|
// implicit
|
||||||
level_since: Scalar,
|
level_since: Scalar,
|
||||||
invremain: Scalar,
|
|
||||||
|
|
||||||
// The fields for the new Lox credential
|
// The fields for the new Lox credential
|
||||||
P: RistrettoPoint,
|
P: RistrettoPoint,
|
||||||
|
@ -558,7 +557,6 @@ impl BridgeAuth {
|
||||||
|
|
||||||
Ok(Response {
|
Ok(Response {
|
||||||
level_since,
|
level_since,
|
||||||
invremain,
|
|
||||||
P,
|
P,
|
||||||
EncQ,
|
EncQ,
|
||||||
id_server,
|
id_server,
|
||||||
|
@ -625,7 +623,7 @@ pub fn handle_response(
|
||||||
Xblockages: &lox_pub.X[6].compress(),
|
Xblockages: &lox_pub.X[6].compress(),
|
||||||
Plevel: &(state.trust_level * resp.P).compress(),
|
Plevel: &(state.trust_level * resp.P).compress(),
|
||||||
Psince: &(resp.level_since * resp.P).compress(),
|
Psince: &(resp.level_since * resp.P).compress(),
|
||||||
Pinvremain: &(resp.invremain * resp.P).compress(),
|
Pinvremain: &(invremain * resp.P).compress(),
|
||||||
TId: &resp.TId.compress(),
|
TId: &resp.TId.compress(),
|
||||||
TBucket: &resp.TBucket.compress(),
|
TBucket: &resp.TBucket.compress(),
|
||||||
TBlockages: &resp.TBlockages.compress(),
|
TBlockages: &resp.TBlockages.compress(),
|
||||||
|
|
Loading…
Reference in New Issue