File tree 7 files changed +63
-0
lines changed
7 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
use util:: byte_utils;
2
11
use util:: chacha20poly1305rfc:: ChaCha20Poly1305RFC ;
3
12
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
//! Handles all over the wire message encryption and decryption upon handshake completion.
2
11
3
12
use ln:: peers:: { chacha, hkdf5869rfc} ;
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
//! Helper library for working with NOISE handshake Act data. Contains utilities for passing Act
2
11
//! objects around and building them from received data.
3
12
//! Act objects are thin wrappers about raw arrays for stack-based processing as well as convenient
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
//! Execute handshakes for peer-to-peer connection establishment.
2
11
//! Handshake states can be advanced automatically, or by manually calling the appropriate step.
3
12
//! Once complete, returns an instance of Conduit.
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
use bitcoin:: secp256k1;
2
11
3
12
use bitcoin:: hashes:: { Hash , HashEngine } ;
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
use bitcoin:: hashes:: { Hash , HashEngine , Hmac , HmacEngine } ;
2
11
use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
3
12
Original file line number Diff line number Diff line change
1
+ // This file is Copyright its original authors, visible in version control
2
+ // history.
3
+ //
4
+ // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5
+ // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
+ // You may not use this file except in accordance with one or both of these
8
+ // licenses.
9
+
1
10
//! Everything that has to do with over-the-wire peer communication.
2
11
//! The handshake module exposes mechanisms to conduct inbound and outbound handshakes.
3
12
//! When a handshake completes, it returns an instance of Conduit.
You can’t perform that action at this time.
0 commit comments