Skip to content

Commit

Permalink
fix dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
XuyangSong committed Nov 22, 2024
1 parent 71b1da1 commit ccaff17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions native/cairo_prover/src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ impl Plaintext {
&self.0
}

pub fn to_vec(&self) -> Vec<Felt> {
self.0.to_vec()
}

pub fn padding(msg: &[Felt]) -> Self {
let mut plaintext = msg.to_owned();
let padding = std::iter::repeat(Felt::ZERO).take(PLAINTEXT_NUM - msg.len());
Expand Down Expand Up @@ -230,5 +226,5 @@ fn test_encryption() {
let decryption = cipher.decrypt(&Felt::ONE).unwrap();

let padded_plaintext = Plaintext::padding(&messages);
assert_eq!(padded_plaintext.to_vec(), decryption);
assert_eq!(padded_plaintext.inner().to_vec(), decryption);
}
2 changes: 0 additions & 2 deletions native/cairo_prover/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(dead_code)]

mod binding_signature;
mod compliance_input;
mod constants;
Expand Down

0 comments on commit ccaff17

Please sign in to comment.