ziskos 1.1.0-alpha

Guest runtime and entrypoint for programs targeting the ZisK zkVM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Common constants.

/// Zero in 256-bit representation
pub const ZERO_256: [u64; 4] = [0, 0, 0, 0];

/// One in 256-bit representation
pub const ONE_256: [u64; 4] = [1, 0, 0, 0];

/// Two in 256-bit representation
pub const TWO_256: [u64; 4] = [2, 0, 0, 0];

/// Maximum value in 256-bit representation
pub const MAX_256: [u64; 4] =
    [0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF];

/// Minus one in 256-bit representation
pub const MINUS_ONE_256: [u64; 4] = MAX_256;