Skip to content

Commit

Permalink
feat: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MdTeach committed Nov 4, 2024
1 parent 021ef14 commit 278ac32
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions bin/bridge-demo/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ mod tests {
use std::fs;

use ark_bn254::{Fq, Fr};
use ark_ff::{BigInteger, Field, PrimeField, UniformRand};
use ark_ff::{BigInteger, PrimeField, UniformRand};
use ark_std::test_rng;
use bitcoin::{ScriptBuf, Txid};
use bitvm::{
Expand Down Expand Up @@ -204,7 +204,7 @@ mod tests {

pub fn get_deposit_master_secret_key(deposit_txid: Txid) -> String {
let master_secret_key = "helloworld";
format!("{}:{}", master_secret_key, deposit_txid.to_string())
format!("{}:{}", master_secret_key, deposit_txid)
}

fn generate_wots_public_keys(deposit_txid: Txid) -> g16::WotsPublicKeys {
Expand Down Expand Up @@ -255,7 +255,7 @@ mod tests {
&assertions.1[i],
)
}),
std::array::from_fn(|mut i| {
std::array::from_fn(|i| {
wots160::get_signature(
&secret_key_for_proof_element(&deposit_msk, (i + 40) as u32),
&assertions.2[i],
Expand Down
8 changes: 2 additions & 6 deletions bin/bridge-demo/src/operator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bitcoin::Txid;
use bitvm::{
groth16::g16,
signatures::wots::{wots160, wots256, wots32},
signatures::wots::{wots160, wots256},
};
use strata_bridge_tx_graph::commitments::{
secret_key_for_bridge_out_txid, secret_key_for_proof_element, secret_key_for_superblock_hash,
Expand All @@ -24,11 +24,7 @@ impl Operator {
pub fn run() {}

pub fn get_deposit_master_secret_key(&self, deposit_txid: Txid) -> String {
format!(
"{}:{}",
self.wots_master_secret_key,
deposit_txid.to_string()
)
format!("{}:{}", self.wots_master_secret_key, deposit_txid)
}

fn generate_wots_public_keys(&self, deposit_txid: Txid) -> g16::WotsPublicKeys {
Expand Down
2 changes: 0 additions & 2 deletions bin/bridge-demo/src/verifier/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use bitvm::signatures::wots::{wots160, wots256};

use crate::common::db::BridgeDb;

pub struct Verifier {
Expand Down
2 changes: 1 addition & 1 deletion bin/strata-bridge/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ async fn main() {

bootstrap(cli_args)
.await
.expect("should be able to boostrap node");
.expect("should be able to bootstrap node");
}
2 changes: 1 addition & 1 deletion crates/agent/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Agent {
TapSighashType::All,
input_index,
)
.expect("should be ablet o create message hash");
.expect("should be able to create message hash");

SECP256K1.sign_schnorr(&msg, &self.keypair)
}
Expand Down

0 comments on commit 278ac32

Please sign in to comment.