Remove non-implicit invremain attribute fields

This commit is contained in:
onyinyang 2023-10-23 16:45:14 -04:00
parent 3b2ee73bab
commit 96a03f1a27
No known key found for this signature in database
GPG Key ID: 156A6435430C2036
2 changed files with 3 additions and 5 deletions

4
Cargo.lock generated
View File

@ -2479,8 +2479,8 @@ dependencies = [
[[package]]
name = "zkp"
version = "0.7.0"
source = "git+https://gitlab.torproject.org/onyinyang/lox-zkp#0210f272211bd9a4000e3ee9dd9358316b0a8d0c"
version = "0.8.0"
source = "git+https://gitlab.torproject.org/onyinyang/lox-zkp#7dc7562ecdac3a6c7c7ecc31cace192174d34778"
dependencies = [
"curve25519-dalek",
"merlin",

View File

@ -98,7 +98,6 @@ pub struct Response {
// The new attributes; the trust_level and invites_remaining are
// implicit
level_since: Scalar,
invremain: Scalar,
// The fields for the new Lox credential
P: RistrettoPoint,
@ -558,7 +557,6 @@ impl BridgeAuth {
Ok(Response {
level_since,
invremain,
P,
EncQ,
id_server,
@ -625,7 +623,7 @@ pub fn handle_response(
Xblockages: &lox_pub.X[6].compress(),
Plevel: &(state.trust_level * 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(),
TBucket: &resp.TBucket.compress(),
TBlockages: &resp.TBlockages.compress(),