Skip to content

Commit

Permalink
kms
Browse files Browse the repository at this point in the history
  • Loading branch information
kayleegeorge committed May 14, 2024
1 parent 8278fab commit 8d84df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/src/runtime/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ pub enum SyscallCode {
SECP256R1_ADD = 0x00_01_01_11,

/// Executes the `SECP256R1_DOUBLE` precompile.
SECP256R1_DOUBLE = 0x00_00_01_13,
SECP256R1_DOUBLE = 0x00_00_01_14,

/// Executes the `SECP256R1_DECOMPRESS` precompile.
SECP256R1_DECOMPRESS = 0x00_00_01_14,
SECP256R1_DECOMPRESS = 0x00_00_01_15,
}

impl SyscallCode {
Expand Down Expand Up @@ -143,8 +143,8 @@ impl SyscallCode {
0x00_00_01_1D => SyscallCode::UINT256_MUL,
0x00_00_01_1C => SyscallCode::BLS12381_DECOMPRESS,
0x00_01_01_11 => SyscallCode::SECP256R1_ADD,
0x00_00_01_13 => SyscallCode::SECP256R1_DOUBLE,
0x00_00_01_14 => SyscallCode::SECP256R1_DECOMPRESS,
0x00_00_01_14 => SyscallCode::SECP256R1_DOUBLE,
0x00_00_01_15 => SyscallCode::SECP256R1_DECOMPRESS,
_ => panic!("invalid syscall number: {}", value),
}
}
Expand Down
4 changes: 2 additions & 2 deletions zkvm/entrypoint/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub const BLS12381_DOUBLE: u32 = 0x00_00_01_1F;
pub const SECP256R1_ADD: u32 = 0x00_01_01_11;

/// Executes the `SECP256R1_DOUBLE` precompile.
pub const SECP256R1_DOUBLE: u32 = 0x00_00_01_13;
pub const SECP256R1_DOUBLE: u32 = 0x00_00_01_14;

/// Executes the `SECP256R1_DECOMPRESS` precompile.
pub const SECP256R1_DECOMPRESS: u32 = 0x00_00_01_14;
pub const SECP256R1_DECOMPRESS: u32 = 0x00_00_01_15;

0 comments on commit 8d84df0

Please sign in to comment.