File tree Expand file tree Collapse file tree 7 files changed +11
-8
lines changed
Expand file tree Collapse file tree 7 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@v4
20- - uses : dtolnay/rust-toolchain@stable
20+ - uses : dtolnay/rust-toolchain@nightly
2121 with :
2222 components : rustfmt
2323 - run : cargo fmt --all -- --check
Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) 2023 felicityin
3+ Copyright (c) 2025 felicityin
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 22
33> This repo is inspired by [ SP1] ( https://github.com/succinctlabs/sp1 ) and [ zkMIPS] ( https://github.com/zkMIPS/zkMIPS ) .
44
5- zkvm-brainfuck is a ZK-VM for the Brainfuck language.
5+ zkvm-brainfuck is a ZK-VM for the Brainfuck language, built on [ Plonky3 ] ( https://github.com/Plonky3/Plonky3 ) .
66
77- Designed as a register machine instead of a stack machine with RAM.
88- Compared to SP1, this system employs a single shard and produces only core proofs.
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ use crate::utils::{next_power_of_two, zeroed_f_vec};
1919/// The number of main trace columns for `AddSubChip`.
2020pub const NUM_ADD_SUB_COLS : usize = size_of :: < AddSubCols < u8 > > ( ) ;
2121
22+ #[ derive( Default ) ]
23+ pub struct AddSubChip ;
24+
2225/// The column layout for the chip.
2326#[ derive( AlignedBorrow , Default , Clone , Copy ) ]
2427#[ repr( C ) ]
@@ -190,9 +193,6 @@ where
190193 }
191194}
192195
193- #[ derive( Default ) ]
194- pub struct AddSubChip ;
195-
196196#[ cfg( test) ]
197197mod tests {
198198 use p3_koala_bear:: KoalaBear ;
Original file line number Diff line number Diff line change 5757 builder. assert_bool ( local. is_memory_instr ) ;
5858 builder. assert_bool ( local. is_io ) ;
5959 builder. assert_bool ( local. is_mv_immutable ) ;
60+ builder. assert_bool ( local. mv_accessed ) ;
61+ builder. assert_bool ( local. next_mv_accessed ) ;
6062 }
6163}
6264
Original file line number Diff line number Diff line change 3636 // Setup the runtime.
3737 let mut runtime = Executor :: new ( program, input) ;
3838
39+ // Execute the program to collect trace events.
3940 runtime. run ( ) . map_err ( BfCoreProverError :: ExecutionError ) ?;
4041
4142 // Prove the program.
Original file line number Diff line number Diff line change @@ -266,8 +266,8 @@ pub fn machine_air_derive(input: TokenStream) -> TokenStream {
266266
267267 let mut new_generics = generics. clone ( ) ;
268268 let where_clause = new_generics. make_where_clause ( ) ;
269- if eval_trait_bound . is_some ( ) {
270- let predicate: WherePredicate = syn:: parse_str ( & eval_trait_bound. unwrap ( ) ) . unwrap ( ) ;
269+ if let Some ( eval_trait_bound ) = eval_trait_bound {
270+ let predicate: WherePredicate = syn:: parse_str ( & eval_trait_bound) . unwrap ( ) ;
271271 where_clause. predicates . push ( predicate) ;
272272 }
273273
You can’t perform that action at this time.
0 commit comments