rustfmt
This commit is contained in:
@@ -11,8 +11,8 @@ use crate::utils::{batch_verify_signatures, hash_g1};
|
||||
use bls12_381::{G1Projective, Scalar};
|
||||
use itertools::Itertools;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
use std::borrow::Borrow;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
pub type CoinIndexSignature = Signature;
|
||||
pub type PartialCoinIndexSignature = CoinIndexSignature;
|
||||
|
||||
@@ -11,8 +11,8 @@ use crate::{constants, EncodedDate};
|
||||
use bls12_381::{G1Projective, Scalar};
|
||||
use itertools::Itertools;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
use std::borrow::Borrow;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
/// A structure representing an expiration date signature.
|
||||
pub type ExpirationDateSignature = Signature;
|
||||
|
||||
@@ -15,8 +15,8 @@ use crate::{constants, ecash_group_parameters, Attribute, EncodedDate, EncodedTi
|
||||
use bls12_381::{multi_miller_loop, G1Projective, G2Prepared, G2Projective, Scalar};
|
||||
use group::{Curve, Group, GroupEncoding};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
use std::ops::Neg;
|
||||
use utoipa::ToSchema;
|
||||
use zeroize::{Zeroize, ZeroizeOnDrop};
|
||||
|
||||
/// Represents a withdrawal request generate by the client who wants to obtain a zk-nym credential.
|
||||
|
||||
@@ -12,9 +12,9 @@ use rs_merkle::{MerkleProof, MerkleTree};
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sha2::Digest;
|
||||
use utoipa::ToSchema;
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use time::Date;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
// no point in importing the entire contract commons just for this one type
|
||||
pub type DepositId = u32;
|
||||
|
||||
@@ -68,7 +68,7 @@ impl VerifyEcashCredentialBody {
|
||||
#[derive(ToSchema)]
|
||||
pub enum EcashTicketVerificationResult {
|
||||
Ok(()),
|
||||
EcashTicketVerificationRejection
|
||||
EcashTicketVerificationRejection,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, JsonSchema, ToSchema)]
|
||||
|
||||
@@ -54,7 +54,6 @@ pub struct ContractInformationContractVersion {
|
||||
pub(crate) details: Option<ContractVersionSchemaResponse>,
|
||||
}
|
||||
|
||||
|
||||
#[utoipa::path(
|
||||
tag = "network",
|
||||
get,
|
||||
|
||||
@@ -18,11 +18,11 @@ use reqwest::StatusCode;
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::Error;
|
||||
use utoipa::{ToResponse, ToSchema};
|
||||
use std::fmt::Display;
|
||||
use thiserror::Error;
|
||||
use time::{Date, OffsetDateTime};
|
||||
use tracing::error;
|
||||
use utoipa::{ToResponse, ToSchema};
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error("Received uptime value was within 0-100 range (got {received})")]
|
||||
|
||||
Reference in New Issue
Block a user