Skip to main content

Crate hypercore_handshake

Crate hypercore_handshake 

Source
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§

CipherEvent
Encryption event
Error
hypercore_handshake related errors

Traits§

CipherIo
Supertrait for duplex channel required by Cipher
CipherTrait
Describe’s the interface needed Cipher IO.

Functions§

snow_keypair_from_secret_and_public
Create a snow::Keypair from secret and public key bytes. Note: snow::Keypair just holds Vec<u8>s. So we don’t check the size. But giving it the wrong size is bad.