-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
98 changed files
with
3,097 additions
and
960 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
use crate::MemTrace; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct EmuTrace { | ||
pub opcode: u8, | ||
pub a: u64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#[derive(Debug, Clone, Copy)] | ||
pub struct MemTrace { | ||
pub is_write: bool, | ||
pub address: u64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "zisk-pil" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
proofman = { workspace = true } | ||
proofman-common = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require "../../state-machines/main/pil/main.pil" | ||
|
||
airgroup Main { | ||
Main(N: 2**21, RC: 1); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod pil_helpers; | ||
|
||
pub use pil_helpers::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// WARNING: This file has been autogenerated from the PILOUT file. | ||
// Manual modifications are not recommended and may be overwritten. | ||
mod pilout; | ||
mod traces; | ||
|
||
pub use pilout::*; | ||
pub use traces::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// WARNING: This file has been autogenerated from the PILOUT file. | ||
// Manual modifications are not recommended and may be overwritten. | ||
use proofman_common::WitnessPilout; | ||
|
||
pub const PILOUT_HASH: &[u8] = b"Zisk-hash"; | ||
|
||
//SUBPROOFS CONSTANTS | ||
|
||
pub const MAIN_SUBPROOF_ID: &[usize] = &[0]; | ||
|
||
//AIR CONSTANTS | ||
|
||
pub const MAIN_AIR_IDS: &[usize] = &[0]; | ||
|
||
pub struct Pilout; | ||
|
||
impl Pilout { | ||
pub fn pilout() -> WitnessPilout { | ||
let mut pilout = WitnessPilout::new("Zisk", 2, PILOUT_HASH.to_vec()); | ||
|
||
let air_group = pilout.add_air_group(Some("Main")); | ||
|
||
air_group.add_air(Some("Main"), 2097152); | ||
|
||
pilout | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// WARNING: This file has been autogenerated from the PILOUT file. | ||
// Manual modifications are not recommended and may be overwritten. | ||
use proofman::trace; | ||
|
||
trace!(Main0Trace<F> { | ||
a: [F; 1], b: [F; 1], c: [F; 1], last_c: [F; 1], flag: F, pc: F, a_src_imm: F, a_src_mem: F, a_offset_imm0: F, sp: F, a_src_sp: F, a_use_sp_imm1: F, a_src_step: F, b_src_imm: F, b_src_mem: F, b_offset_imm0: F, b_use_sp_imm1: F, b_src_ind: F, ind_width: F, is_external_op: F, op: F, store_ra: F, store_mem: F, store_ind: F, store_offset: F, set_pc: F, store_use_sp: F, set_sp: F, inc_sp: F, jmp_offset1: F, jmp_offset2: F, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "sm-arith-32" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
zisk-core = { path = "../../core" } | ||
sm-common = { path = "../common" } | ||
|
||
# proofman-common = { git = "https://github.com/0xPolygonHermez/pil2-proofman.git", branch ="develop" } | ||
# proofman = { git = "https://github.com/0xPolygonHermez/pil2-proofman.git", branch ="develop" } | ||
# witness-helpers = { git = "https://github.com/0xPolygonHermez/pil2-proofman.git", branch ="develop" } | ||
#Local development | ||
proofman-common = { workspace = true } | ||
proofman = { workspace = true } | ||
witness-helpers = { workspace = true } | ||
|
||
log = { version = "0.4", default-features = false } | ||
p3-goldilocks = { git = "https://github.com/Plonky3/Plonky3.git", rev = "c3d754ef77b9fce585b46b972af751fe6e7a9803" } | ||
p3-field = { git = "https://github.com/Plonky3/Plonky3.git", rev = "c3d754ef77b9fce585b46b972af751fe6e7a9803" } | ||
rayon = "1.10.0" |
File renamed without changes.
Oops, something went wrong.