Fix clippy, update old dependencies

This commit is contained in:
Luke Parker
2025-08-25 09:17:29 -04:00
parent c24b694fb2
commit 9dddfd91c8
93 changed files with 637 additions and 663 deletions

View File

@@ -25,8 +25,8 @@ zeroize = { version = "1", default-features = false, features = ["std"] }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["std"] }
borsh = { version = "1", default-features = false, features = ["std", "derive", "de_strict_order"] }
dalek-ff-group = { path = "../../crypto/dalek-ff-group", default-features = false, features = ["std"] }
ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["std"] }
dalek-ff-group = { path = "../../crypto/dalek-ff-group", default-features = false, features = ["std"] }
dkg = { package = "dkg-evrf", path = "../../crypto/dkg/evrf", default-features = false, features = ["std", "ed25519"] }
frost = { package = "modular-frost", path = "../../crypto/frost", default-features = false }

View File

@@ -1,4 +1,4 @@
use ciphersuite::Ed25519;
use dkg::Ed25519;
pub(crate) struct KeyGenParams;
impl key_gen::KeyGenParams for KeyGenParams {

View File

@@ -1,6 +1,7 @@
use std::collections::HashMap;
use ciphersuite::{Ciphersuite, Ed25519};
use ciphersuite::Ciphersuite;
use dalek_ff_group::Ed25519;
use monero_wallet::{
block::Block as MBlock, rpc::ScannableBlock as MScannableBlock, ScanError, GuaranteedScanner,

View File

@@ -1,6 +1,7 @@
use zeroize::Zeroizing;
use ciphersuite::{Ciphersuite, Ed25519};
use ciphersuite::Ciphersuite;
use dalek_ff_group::Ed25519;
use monero_wallet::{address::SubaddressIndex, ViewPairError, GuaranteedViewPair};

View File

@@ -1,6 +1,7 @@
use std::io;
use ciphersuite::{group::Group, Ciphersuite, Ed25519};
use ciphersuite::{group::Group, Ciphersuite};
use dalek_ff_group::Ed25519;
use monero_wallet::WalletOutput;

View File

@@ -2,7 +2,7 @@ use std::io;
use rand_core::{RngCore, CryptoRng};
use ciphersuite::Ed25519;
use dalek_ff_group::Ed25519;
use frost::{dkg::ThresholdKeys, sign::PreprocessMachine};
use monero_wallet::{

View File

@@ -4,7 +4,8 @@ use zeroize::Zeroizing;
use rand_core::SeedableRng;
use rand_chacha::ChaCha20Rng;
use ciphersuite::{Ciphersuite, Ed25519};
use ciphersuite::Ciphersuite;
use dalek_ff_group::Ed25519;
use monero_wallet::rpc::{FeeRate, RpcError};
@@ -200,6 +201,9 @@ impl TransactionPlanner<Rpc, ()> for Planner {
Err(SendError::TooLargeTransaction) => {
panic!("too large transaction despite MAX_INPUTS/MAX_OUTPUTS")
}
Err(SendError::AmountsUnrepresentable { .. }) => {
panic!("monero-wallet AmountsUnrepresentable")
}
Err(
SendError::WrongPrivateKey |
SendError::MaliciousSerialization |
@@ -255,6 +259,9 @@ impl TransactionPlanner<Rpc, ()> for Planner {
Err(SendError::TooLargeTransaction) => {
panic!("too large transaction despite MAX_INPUTS/MAX_OUTPUTS")
}
Err(SendError::AmountsUnrepresentable { .. }) => {
panic!("monero-wallet AmountsUnrepresentable")
}
Err(
SendError::WrongPrivateKey |
SendError::MaliciousSerialization |