Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncolburne committed Mar 4, 2024
1 parent 7cd5453 commit 606de33
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cesride"
version = "0.6.3"
version = "0.6.4"
edition = "2021"
description = "Cryptographic primitives for use with Composable Event Streaming Representation (CESR)"
license = "Apache-2.0"
Expand All @@ -11,7 +11,7 @@ keywords = ["cesr", "keri", "acdc"]
[dependencies]
anyhow = "~1"
argon2 = "~0.5"
base64 = "~0.21"
base64 = "~0.22"
blake2 = "~0.10"
blake3 = "~1"
chrono = { version = "~0.4", default-features = false, features = ["clock"] }
Expand Down
2 changes: 1 addition & 1 deletion src/core/counter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl Counter {
}

pub fn sem_ver_to_b64(major: u8, minor: u8, patch: u8) -> Result<String> {
let parts = &vec![major, minor, patch];
let parts = &[major, minor, patch];
Counter::sem_ver_parts_to_b64(parts)
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ mod test {
assert!(TestIndexer::new(None, None, None, Some(&[]), None, None, None).is_err());

let code = indexer::Codex::TBD0;
let raw = &vec![0, 1, 2, 3, 4, 5, 6, 7, 8];
let raw = &[0, 1, 2, 3, 4, 5, 6, 7, 8];
let indexer =
TestIndexer::new(None, None, Some(code), Some(raw), None, None, None).unwrap();
let qb64 = &indexer.qb64().unwrap();
Expand Down Expand Up @@ -1027,7 +1027,7 @@ mod test {
#[case(indexer::Codex::Ed25519_Big, 92)]
#[case(indexer::Codex::Ed448_Big, 160)]
fn raw_size(#[case] code: &str, #[case] full_size: usize) {
let raw = (0..full_size as usize - code.len()).map(|_| "A").collect::<String>();
let raw = (0..full_size - code.len()).map(|_| "A").collect::<String>();
let qb64 = [code, &raw].join("");
let indexer = TestIndexer::new(None, None, None, None, None, Some(&qb64), None).unwrap();
assert_eq!(indexer.full_size().unwrap(), full_size);
Expand Down
2 changes: 1 addition & 1 deletion src/core/prefixer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ mod test {
let prefixer = Prefixer::new(Some(&ked), None, Some(code), None, None, None, None).unwrap();

let mut map = ked.to_map().unwrap();
map.remove("k");
map.shift_remove("k");
ked = dat!(&map);

assert!(!prefixer.verify(&ked, None).unwrap());
Expand Down
2 changes: 1 addition & 1 deletion src/core/saider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn derive(
let mut map = sad.to_map()?;
for key in ignore.unwrap_or(&[]) {
if map.contains_key(*key) {
map.remove(*key);
map.shift_remove(*key);
}
}
let ser = dat!(&map);
Expand Down
2 changes: 1 addition & 1 deletion src/core/verfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ mod test {
let bad_ser = hex!("e1be4d7a8ab5560aa4199eea339849ba8e293d55ca0a81006726d184519e647f"
"5b49b82f805a538c68915c1ae8035c900fd1d4b13902920fd05e1450822f36df");

let mut csprng = rand_core::OsRng::default();
let mut csprng = rand_core::OsRng;
let keypair = ed25519_dalek::SigningKey::generate(&mut csprng);

let sig = keypair.sign(&ser).to_bytes();
Expand Down

0 comments on commit 606de33

Please sign in to comment.