Skip to content

Commit 9c6bec3

Browse files
authored
Merge pull request #433 from EspressoSystems/li/update-snow-crate
Update Snow crate
2 parents 760333c + 1278ce6 commit 9c6bec3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ where
871871
fn spawn_handshake(&mut self, s: T::Stream) {
872872
let h = Builder::new(NOISE_PARAMS.parse().expect("valid noise params"))
873873
.local_private_key(&self.keypair.secret_key().as_bytes())
874+
.expect("valid private key")
874875
.build_responder()
875876
.expect("valid noise params yield valid handshake state");
876877
self.handshake_tasks.spawn(async move {
@@ -963,7 +964,9 @@ async fn connect<T: tcp::Stream + Unpin>(
963964
let new_handshake_state = || {
964965
Builder::new(NOISE_PARAMS.parse().expect("valid noise params"))
965966
.local_private_key(this.1.secret_key().as_slice())
967+
.expect("valid private key")
966968
.remote_public_key(to.1.as_slice())
969+
.expect("valid remote pub key")
967970
.build_initiator()
968971
.expect("valid noise params yield valid handshake state")
969972
};

0 commit comments

Comments
 (0)