-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lunkai/p256
- Loading branch information
Showing
70 changed files
with
2,665 additions
and
2,718 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -28,3 +28,7 @@ __pycache__/ | |
|
||
# Javascript | ||
**/node_modules/ | ||
|
||
# Profiling | ||
**/flamegraph.svg | ||
**/profile.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,33 @@ | ||
use openvm_circuit::arch::{instructions::exe::VmExe, VmExecutor}; | ||
use openvm_keccak256_circuit::Keccak256Rv32Config; | ||
use openvm_keccak256_transpiler::Keccak256TranspilerExtension; | ||
use openvm_rv32im_transpiler::{ | ||
Rv32ITranspilerExtension, Rv32IoTranspilerExtension, Rv32MTranspilerExtension, | ||
}; | ||
use openvm_sdk::StdIn; | ||
use openvm_stark_sdk::p3_baby_bear::BabyBear; | ||
use openvm_transpiler::{ | ||
elf::Elf, openvm_platform::memory::MEM_SIZE, transpiler::Transpiler, FromElf, | ||
}; | ||
|
||
fn main() { | ||
let elf = Elf::decode(include_bytes!("regex-elf"), MEM_SIZE as u32).unwrap(); | ||
let exe = VmExe::from_elf( | ||
elf, | ||
Transpiler::<BabyBear>::default() | ||
.with_extension(Rv32ITranspilerExtension) | ||
.with_extension(Rv32MTranspilerExtension) | ||
.with_extension(Rv32IoTranspilerExtension) | ||
.with_extension(Keccak256TranspilerExtension), | ||
) | ||
.unwrap(); | ||
|
||
let config = Keccak256Rv32Config::default(); | ||
let executor = VmExecutor::<BabyBear, Keccak256Rv32Config>::new(config); | ||
|
||
let data = include_str!("../programs/regex/regex_email.txt"); | ||
|
||
executor | ||
.execute(exe.clone(), StdIn::from_bytes(data.as_bytes())) | ||
.unwrap(); | ||
} |
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
Oops, something went wrong.