Skip to content

Commit

Permalink
chore: rust update (#4838)
Browse files Browse the repository at this point in the history
  • Loading branch information
jowparks authored Mar 12, 2024
1 parent e1fc0ba commit e1a4785
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion ironfish-rust/src/keys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use group::GroupEncoding;
use ironfish_zkp::constants::{
CRH_IVK_PERSONALIZATION, PROOF_GENERATION_KEY_GENERATOR, SPENDING_KEY_GENERATOR,
};
use ironfish_zkp::ProofGenerationKey;
use jubjub::SubgroupPoint;
use rand::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion ironfish-rust/src/serializing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub fn hex_to_vec_bytes(hex: &str) -> Result<Vec<u8>, IronfishError> {

let hex_iter = hex.as_bytes().chunks_exact(2);

for (_, hex) in hex_iter.enumerate() {
for hex in hex_iter {
bytes.push(hex_to_u8(hex[0])? << 4 | hex_to_u8(hex[1])?);
}

Expand Down
1 change: 0 additions & 1 deletion ironfish-rust/src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ pub(crate) fn auth_path_to_root_hash(
/// Helper function to create a list of random identifiers for multisig participants.
pub fn create_multisig_identities(num_identifiers: usize) -> Vec<Identity> {
(0..num_identifiers)
.into_iter()
.map(|_| Secret::random(thread_rng()).to_identity())
.collect()
}
1 change: 0 additions & 1 deletion ironfish-rust/src/transaction/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ fn test_transaction_version_is_checked() {

let valid_versions = [1u8, 2u8];
let invalid_versions = (u8::MIN..=u8::MAX)
.into_iter()
.filter(|v| !valid_versions.contains(v))
.collect::<Vec<u8>>();
assert_eq!(invalid_versions.len(), 254);
Expand Down
4 changes: 2 additions & 2 deletions ironfish-zkp/src/circuits/spend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,15 +501,15 @@ mod test {

let tree_depth = 32;

let expected_commitment_us = vec![
let expected_commitment_us = [
"43821661663052659750276289184181083197337192946256245809816728673021647664276",
"3307162152126086816128645612622677680790809218093944138874328908293932504970",
"11069610839860164669107523771435662310747439806735198902948128278779049984187",
"41940920445724888473708658693943093655174812428044709757836212456454182108570",
"21486204115269202361511785053830008932611482941164104173096094940232117952518",
];

let expected_commitment_vs = vec![
let expected_commitment_vs = [
"27630722367128086497290371604583225252915685718989450292520883698391703910",
"50661753032157861157033186529508424590095922868336394465083465551064239171765",
"42720677731824278375166374390978871535259136440715287500660141460976255671332",
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.66.1"
channel = "1.76.0"

0 comments on commit e1a4785

Please sign in to comment.