This commit is contained in:
Jędrzej Stuczyński
2024-01-26 15:48:49 +00:00
parent ecf85049c6
commit 825a138cf3
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ impl TryFrom<&[u8]> for Theta {
let blinded_serial_number_bytes = &bytes[96..192];
let blinded_serial_number =
BlindedSerialNumber::try_from_byte_slice(&blinded_serial_number_bytes)?;
BlindedSerialNumber::try_from_byte_slice(blinded_serial_number_bytes)?;
let credential = Signature::try_from(&bytes[192..288])?;
@@ -23,6 +23,7 @@ use tokio::sync::{RwLock, RwLockReadGuard};
pub(crate) const BANDWIDTH_PER_CREDENTIAL: u64 = 1024 * 1024 * 1024; // 1GB
pub(crate) struct CoconutVerifier {
#[allow(dead_code)]
address: AccountId,
nyxd_client: RwLock<DirectSigningHttpRpcNyxdClient>,
@@ -31,6 +32,8 @@ pub(crate) struct CoconutVerifier {
// keys never change during epochs
master_keys: RwLock<HashMap<EpochId, VerificationKey>>,
#[allow(dead_code)]
mix_denom_base: String,
}
@@ -153,6 +156,7 @@ impl CoconutVerifier {
Ok(all_coconut_api_clients(self.nyxd_client.read().await.deref(), epoch_id).await?)
}
#[allow(dead_code)]
pub async fn release_funds(
&self,
api_clients: &[CoconutApiClient],
+2
View File
@@ -23,6 +23,8 @@ pub(crate) struct PersistedBandwidth {
#[derive(Debug, Clone, FromRow)]
pub(crate) struct SpentCredential {
#[allow(dead_code)]
pub(crate) blinded_serial_number_bs58: String,
#[allow(dead_code)]
pub(crate) client_address_bs58: String,
}