21 lines
548 B
Rust
21 lines
548 B
Rust
|
//! Constants
|
||
|
|
||
|
/// The size (in bytes) of a nonce
|
||
|
pub static NONCE_SIZE: uint = 32;
|
||
|
|
||
|
/// The size (in bytes) of a secret key
|
||
|
pub static SECRET_KEY_SIZE: uint = 32;
|
||
|
|
||
|
/// The size (in bytes) of an uncompressed public key
|
||
|
pub static UNCOMPRESSED_PUBLIC_KEY_SIZE: uint = 65;
|
||
|
|
||
|
/// The size (in bytes) of a compressed public key
|
||
|
pub static COMPRESSED_PUBLIC_KEY_SIZE: uint = 33;
|
||
|
|
||
|
/// The maximum size of a signature
|
||
|
pub static MAX_SIGNATURE_SIZE: uint = 72;
|
||
|
|
||
|
/// The maximum size of a compact signature
|
||
|
pub static MAX_COMPACT_SIGNATURE_SIZE: uint = 64;
|
||
|
|