monerochan_runtime/syscalls/
mod.rs1mod bigint;
2mod bls12381;
3mod bn254;
4mod ed25519;
5mod fptower;
6mod halt;
7mod io;
8mod keccak_permute;
9mod memory;
10mod secp256k1;
11mod secp256r1;
12mod sha_compress;
13mod sha_extend;
14mod sys;
15mod u256x2048_mul;
16mod uint256_mul;
17mod unconstrained;
18#[cfg(feature = "verify")]
19mod verify;
20
21pub use bigint::*;
22pub use bls12381::*;
23pub use bn254::*;
24pub use ed25519::*;
25pub use fptower::*;
26pub use halt::*;
27pub use io::*;
28pub use keccak_permute::*;
29pub use memory::*;
30pub use secp256k1::*;
31pub use secp256r1::*;
32pub use sha_compress::*;
33pub use sha_extend::*;
34pub use sys::*;
35pub use u256x2048_mul::*;
36pub use uint256_mul::*;
37pub use unconstrained::*;
38#[cfg(feature = "verify")]
39pub use verify::*;
40
41pub const HALT: u32 = 0x00_00_00_00;
46
47pub const WRITE: u32 = 0x00_00_00_02;
49
50pub const ENTER_UNCONSTRAINED: u32 = 0x00_00_00_03;
52
53pub const EXIT_UNCONSTRAINED: u32 = 0x00_00_00_04;
55
56pub const SHA_EXTEND: u32 = 0x00_30_01_05;
58
59pub const SHA_COMPRESS: u32 = 0x00_01_01_06;
61
62pub const ED_ADD: u32 = 0x00_01_01_07;
64
65pub const ED_DECOMPRESS: u32 = 0x00_00_01_08;
67
68pub const KECCAK_PERMUTE: u32 = 0x00_01_01_09;
70
71pub const SECP256K1_ADD: u32 = 0x00_01_01_0A;
73
74pub const SECP256K1_DOUBLE: u32 = 0x00_00_01_0B;
76
77pub const SECP256K1_DECOMPRESS: u32 = 0x00_00_01_0C;
79
80pub const SECP256R1_ADD: u32 = 0x00_01_01_2C;
82
83pub const SECP256R1_DOUBLE: u32 = 0x00_00_01_2D;
85
86pub const SECP256R1_DECOMPRESS: u32 = 0x00_00_01_2E;
88
89pub const U256XU2048_MUL: u32 = 0x00_01_01_2F;
91
92pub const BN254_ADD: u32 = 0x00_01_01_0E;
94
95pub const BN254_DOUBLE: u32 = 0x00_00_01_0F;
97
98pub const COMMIT: u32 = 0x00_00_00_10;
100
101pub const COMMIT_DEFERRED_PROOFS: u32 = 0x00_00_00_1A;
103
104pub const VERIFY_MONEROCHAN_PROOF: u32 = 0x00_00_00_1B;
106
107pub const HINT_LEN: u32 = 0x00_00_00_F0;
109
110pub const HINT_READ: u32 = 0x00_00_00_F1;
112
113pub const BLS12381_DECOMPRESS: u32 = 0x00_00_01_1C;
115
116pub const UINT256_MUL: u32 = 0x00_01_01_1D;
118
119pub const BLS12381_ADD: u32 = 0x00_01_01_1E;
121
122pub const BLS12381_DOUBLE: u32 = 0x00_00_01_1F;
124
125pub const BLS12381_FP_ADD: u32 = 0x00_01_01_20;
127
128pub const BLS12381_FP_SUB: u32 = 0x00_01_01_21;
130
131pub const BLS12381_FP_MUL: u32 = 0x00_01_01_22;
133
134pub const BLS12381_FP2_ADD: u32 = 0x00_01_01_23;
136
137pub const BLS12381_FP2_SUB: u32 = 0x00_01_01_24;
139
140pub const BLS12381_FP2_MUL: u32 = 0x00_01_01_25;
142
143pub const BN254_FP_ADD: u32 = 0x00_01_01_26;
145
146pub const BN254_FP_SUB: u32 = 0x00_01_01_27;
148
149pub const BN254_FP_MUL: u32 = 0x00_01_01_28;
151
152pub const BN254_FP2_ADD: u32 = 0x00_01_01_29;
154
155pub const BN254_FP2_SUB: u32 = 0x00_01_01_2A;
157
158pub const BN254_FP2_MUL: u32 = 0x00_01_01_2B;