cargo-fmt
This commit is contained in:
parent
88a0990243
commit
e1bed84e27
|
@ -32,9 +32,7 @@ use super::super::{BridgeAuth, IssuerPubKey};
|
||||||
use super::super::{CMZ_A, CMZ_A_TABLE};
|
use super::super::{CMZ_A, CMZ_A_TABLE};
|
||||||
|
|
||||||
pub fn compute_H(date: u32) -> RistrettoPoint {
|
pub fn compute_H(date: u32) -> RistrettoPoint {
|
||||||
RistrettoPoint::hash_from_bytes::<Sha512>(
|
RistrettoPoint::hash_from_bytes::<Sha512>(format!("PR Generator H for {}", date).as_bytes())
|
||||||
format!("PR Generator H for {}", date).as_bytes(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
|
@ -236,7 +234,11 @@ pub fn request(lox_cred: &cred::Lox, lox_pub: &IssuerPubKey) -> Result<Request,
|
||||||
|
|
||||||
impl BridgeAuth {
|
impl BridgeAuth {
|
||||||
/// Receive a positive report request
|
/// 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 A: &RistrettoPoint = &CMZ_A;
|
||||||
let H = Htable.basepoint();
|
let H = Htable.basepoint();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue