Skip to content

Commit a0f1620

Browse files
CopilotSteake
andcommitted
Fix compilation warnings: remove unused imports and variables
Co-authored-by: Steake <530040+Steake@users.noreply.github.com>
1 parent 0302334 commit a0f1620

6 files changed

Lines changed: 6 additions & 9 deletions

File tree

crates/bitcell-crypto/src/clsag.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
//! Implements linkable ring signatures for tournament anonymity.
44
//! Based on the CLSAG construction from Monero.
55
6-
use crate::{Error, Hash256, Result};
6+
use crate::{Error, Result};
77
use curve25519_dalek::{
88
constants::RISTRETTO_BASEPOINT_TABLE,
99
ristretto::{CompressedRistretto, RistrettoPoint},
1010
scalar::Scalar,
11-
traits::Identity,
1211
};
1312
use serde::{Deserialize, Serialize};
1413
use sha2::{Digest, Sha512};

crates/bitcell-crypto/src/commitment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
//! Used in the privacy layer for commitments to state values.
44
55
use crate::{Error, Result};
6-
use ark_ec::{CurveGroup, Group};
6+
use ark_ec::Group;
77
use ark_ff::{PrimeField, UniformRand};
88
use ark_bn254::{G1Projective as G1, Fr};
9-
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
9+
use ark_serialize::CanonicalSerialize;
1010
use once_cell::sync::Lazy;
1111
use rand::rngs::OsRng;
1212
use serde::{Deserialize, Serialize};

crates/bitcell-crypto/src/ecvrf.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use curve25519_dalek::{
88
constants::RISTRETTO_BASEPOINT_TABLE,
99
ristretto::{CompressedRistretto, RistrettoPoint},
1010
scalar::Scalar,
11-
traits::Identity,
1211
};
1312
use serde::{Deserialize, Serialize};
1413
use sha2::{Digest, Sha512};
@@ -62,7 +61,6 @@ impl EcvrfSecretKey {
6261

6362
// Get public key
6463
let pk = self.public_key();
65-
let y_point = &self.scalar * RISTRETTO_BASEPOINT_TABLE;
6664

6765
// Hash to curve: H = hash_to_curve(alpha)
6866
let h_point = hash_to_curve(alpha);

crates/bitcell-crypto/src/ring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl RingSignature {
9292
}
9393

9494
/// Verify a ring signature
95-
pub fn verify(&self, ring: &[PublicKey], message: &[u8]) -> Result<()> {
95+
pub fn verify(&self, ring: &[PublicKey], _message: &[u8]) -> Result<()> {
9696
// Verify ring hash matches
9797
let computed_ring_hash = compute_ring_hash(ring);
9898
if computed_ring_hash != self.ring_hash {

crates/bitcell-crypto/src/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use k256::ecdsa::{
88
Signature as K256Signature, SigningKey, VerifyingKey,
99
};
1010
use rand::rngs::OsRng;
11-
use serde::{Deserialize, Serialize};
11+
1212
use std::fmt;
1313

1414
/// ECDSA public key (33 bytes compressed)

crates/bitcell-crypto/src/vrf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Uses ECVRF (Elliptic Curve VRF) based on the IRTF draft spec.
44
//! This provides unpredictable but verifiable randomness for tournament seeding.
55
6-
use crate::{Error, Hash256, PublicKey, Result, SecretKey};
6+
use crate::{Hash256, PublicKey, Result, SecretKey};
77
use serde::{Deserialize, Serialize};
88
use sha2::{Digest, Sha256};
99

0 commit comments

Comments
 (0)