File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ serde_with = "3.12.0"
86
86
sha2 = { version = " 0.10" , default-features = false }
87
87
sha3 = " 0.10.8"
88
88
smallvec = " 1.15.1"
89
- snow = " 0.9.6 "
89
+ snow = " 0.10.0 "
90
90
spongefish = { git = " https://github.com/arkworks-rs/spongefish.git" , rev = " e9f7031" , features = [
91
91
" arkworks-algebra" ,
92
92
] }
Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ where
870
870
/// to which it will respond.
871
871
fn spawn_handshake ( & mut self , s : T :: Stream ) {
872
872
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" )
874
874
. build_responder ( )
875
875
. expect ( "valid noise params yield valid handshake state" ) ;
876
876
self . handshake_tasks . spawn ( async move {
@@ -962,8 +962,8 @@ async fn connect<T: tcp::Stream + Unpin>(
962
962
963
963
let new_handshake_state = || {
964
964
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" )
967
967
. build_initiator ( )
968
968
. expect ( "valid noise params yield valid handshake state" )
969
969
} ;
You can’t perform that action at this time.
0 commit comments