1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Constants used by the relay library.

/// Noise protocol pattern.
pub const PATTERN: &str = "Noise_NN_25519_ChaChaPoly_BLAKE2s";

/// Tag for PEM encoding of noise pattern.
pub const PEM_PATTERN: &str = "NOISE PATTERN";

/// Tag for PEM encoding of private key.
pub const PEM_PRIVATE: &str = "NOISE PRIVATE KEY";

/// Tag for PEM encoding of public key.
pub const PEM_PUBLIC: &str = "NOISE PUBLIC KEY";

/// Tag length for the noise protocol.
pub const TAGLEN: usize = 16;