diff --git a/crates/lox-library/src/proto/positive_report.rs b/crates/lox-library/src/proto/positive_report.rs index 3ef52b4..b9f639c 100644 --- a/crates/lox-library/src/proto/positive_report.rs +++ b/crates/lox-library/src/proto/positive_report.rs @@ -32,9 +32,7 @@ use super::super::{BridgeAuth, IssuerPubKey}; use super::super::{CMZ_A, CMZ_A_TABLE}; pub fn compute_H(date: u32) -> RistrettoPoint { - RistrettoPoint::hash_from_bytes::( - format!("PR Generator H for {}", date).as_bytes(), - ) + RistrettoPoint::hash_from_bytes::(format!("PR Generator H for {}", date).as_bytes()) } #[derive(Serialize, Deserialize)] @@ -236,7 +234,11 @@ pub fn request(lox_cred: &cred::Lox, lox_pub: &IssuerPubKey) -> Result Result<(), ProofError> { + pub fn handle_positive_report( + &mut self, + req: Request, + Htable: &RistrettoBasepointTable, + ) -> Result<(), ProofError> { let A: &RistrettoPoint = &CMZ_A; let H = Htable.basepoint();