Skip to content

Commit c749e9f

Browse files
committed
update snow
1 parent 760333c commit c749e9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ serde_with = "3.12.0"
8686
sha2 = { version = "0.10", default-features = false }
8787
sha3 = "0.10.8"
8888
smallvec = "1.15.1"
89-
snow = "0.9.6"
89+
snow = "0.10.0"
9090
spongefish = { git = "https://github.com/arkworks-rs/spongefish.git", rev = "e9f7031", features = [
9191
"arkworks-algebra",
9292
] }

cliquenet/src/net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ where
870870
/// to which it will respond.
871871
fn spawn_handshake(&mut self, s: T::Stream) {
872872
let h = Builder::new(NOISE_PARAMS.parse().expect("valid noise params"))
873-
.local_private_key(&self.keypair.secret_key().as_bytes())
873+
.local_private_key(&self.keypair.secret_key().as_bytes()).expect("valid private key")
874874
.build_responder()
875875
.expect("valid noise params yield valid handshake state");
876876
self.handshake_tasks.spawn(async move {
@@ -962,8 +962,8 @@ async fn connect<T: tcp::Stream + Unpin>(
962962

963963
let new_handshake_state = || {
964964
Builder::new(NOISE_PARAMS.parse().expect("valid noise params"))
965-
.local_private_key(this.1.secret_key().as_slice())
966-
.remote_public_key(to.1.as_slice())
965+
.local_private_key(this.1.secret_key().as_slice()).expect("valid private key")
966+
.remote_public_key(to.1.as_slice()).expect("valid remote pub key")
967967
.build_initiator()
968968
.expect("valid noise params yield valid handshake state")
969969
};

0 commit comments

Comments
 (0)