Expand description
State machine
Re-exports§
pub use state_machine::HandshakePattern;pub use state_machine::IK;pub use state_machine::XX;
Modules§
- state_
machine - State machine for creating a Noise IK and XX patterns (using a typestate pattern)
Structs§
- Cipher
- Encrypts and decrypts messages over a Noise IK handshake channel.
Enums§
- Cipher
Event - Encryption event
- Error
- hypercore_handshake related errors
Traits§
- Cipher
Io - Supertrait for duplex channel required by
Cipher - Cipher
Trait - Describe’s the interface needed
CipherIO.
Functions§
- snow_
keypair_ from_ secret_ and_ public - Create a
snow::Keypairfrom secret and public key bytes. Note:snow::Keypairjust holdsVec<u8>s. So we don’t check the size. But giving it the wrong size is bad.