Skip to content

Commit

Permalink
Fix linter warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Aug 28, 2023
1 parent 9bfa0cb commit 87c8a2e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Build and install Python Bindings
run: |
python --version ;
python .\cryptatools-core\setup.py bdist_wheel --verbose ;
$wheelFile = Get-ChildItem -Path .\dist\ -Recurse -Include * ;
pip3 install $wheelFile --force-reinstall ;
Expand Down
2 changes: 1 addition & 1 deletion cryptatools-cli/src/statistical_cryptanalysis/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Freq (
fn main() {
let cli = Cli::parse();
match &cli.command {
Commands::GetCoincidenceIndex { cipher_text } => {
Commands::GetCoincidenceIndex { cipher_text: _ } => {
println!("here is the coincidence index.")
//let c = CoincidenceIndexGuesser::new(alphabet);
//let coincidence_index: f64 = c.guess_coincidence_index(opcodes.as_bytes().to_vec());
Expand Down
2 changes: 1 addition & 1 deletion cryptatools-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"wheel",
"semantic-version==2.9.0",
"setuptools",
"typing_extensions==4.0.1",
"typing_extensions==4.7.1",
"pytest==7.1.2",
"tox==3.25.1",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use num_bigfloat::BigFloat;
use num_traits::Pow;
use num::FromPrimitive;
use num_traits::Float;
use num::ToPrimitive;
use num::One;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;
use crate::utils::alphabets::Alphabet;

pub struct AlgorithmOne {
#[allow(dead_code)]
alphabet: Alphabet,
}

Expand Down
9 changes: 1 addition & 8 deletions cryptatools-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,4 @@ use crate::cryptography::classical::encryption::monoalphabetic_ciphers::caesar_n
use crate::cryptography::classical::encryption::transpositional_ciphers::columnar_transposition::ColumnarTranspositionAlgorithm;
use crate::cryptanalysis::general_cryptanalysis_methods::frequency_analysis::coincidence_index::CoincidenceIndexGuesser;

uniffi_macros::include_scaffolding!("cryptatools");

/*
[Name=full_hexadecimal_alphabet]
constructor();
Alphabet full_hexadecimal_alphabet();
*/
uniffi_macros::include_scaffolding!("cryptatools");
1 change: 0 additions & 1 deletion cryptatools-core/src/utils/alphabets.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(assert_matches)]
use itertools::Itertools;
use bimap::btree::BiBTreeMap;
//use std::assert_matches::assert_matches;
Expand Down
3 changes: 1 addition & 2 deletions doc-examples/ethereum-colision-evaluation/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use ethers::prelude::*;

use cryptatools_core::utils::{convert::Encode, alphabets::split_bytes_by_characters_representation, alphabets::Alphabet, alphabets::Encoding};
use cryptatools_core::cryptanalysis::general_cryptanalysis_methods::frequency_analysis::coincidence_index::CoincidenceIndexGuesser;
use cryptatools_core::utils::alphabets::Alphabet;
use cryptatools_core::cryptanalysis::general_cryptanalysis_methods::hash_cryptanalysis::birthday_paradox::BirtdayParadox;

const WSS_URL: &str = "wss://mainnet.infura.io/ws/v3/c60b0bb42f8a4c6481ecd229eddaca27";
Expand Down

0 comments on commit 87c8a2e

Please sign in to comment.