cargo-fmt

This commit is contained in:
Vecna 2024-02-28 11:49:47 -05:00
parent 88a0990243
commit e1bed84e27
1 changed files with 6 additions and 4 deletions

View File

@ -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::<Sha512>(
format!("PR Generator H for {}", date).as_bytes(),
)
RistrettoPoint::hash_from_bytes::<Sha512>(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<Request,
impl BridgeAuth {
/// Receive a positive report request
pub fn handle_positive_report(&mut self, req: Request, Htable: &RistrettoBasepointTable) -> Result<(), ProofError> {
pub fn handle_positive_report(
&mut self,
req: Request,
Htable: &RistrettoBasepointTable,
) -> Result<(), ProofError> {
let A: &RistrettoPoint = &CMZ_A;
let H = Htable.basepoint();