File tree Expand file tree Collapse file tree 7 files changed +63
-0
lines changed
Expand file tree Collapse file tree 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+
110use util:: byte_utils;
211use util:: chacha20poly1305rfc:: ChaCha20Poly1305RFC ;
312
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+
110//! Handles all over the wire message encryption and decryption upon handshake completion.
211
312use 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+
110//! Helper library for working with NOISE handshake Act data. Contains utilities for passing Act
211//! objects around and building them from received data.
312//! 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+
110//! Execute handshakes for peer-to-peer connection establishment.
211//! Handshake states can be advanced automatically, or by manually calling the appropriate step.
312//! 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+
110use bitcoin:: secp256k1;
211
312use 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+
110use bitcoin:: hashes:: { Hash , HashEngine , Hmac , HmacEngine } ;
211use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
312
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+
110//! Everything that has to do with over-the-wire peer communication.
211//! The handshake module exposes mechanisms to conduct inbound and outbound handshakes.
312//! When a handshake completes, it returns an instance of Conduit.
You can’t perform that action at this time.
0 commit comments