Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed May 7, 2024
1 parent 83c9d69 commit bf454c1
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions bberg/src/vm_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,27 @@ pub fn extract_public_input_columns(witness_columns: Vec<String>) -> (Vec<String
.clone()
.into_iter()
.map(|name| {
if name.ends_with("__is_public") {
name.strip_suffix("__is_public")
.map(|s| s.to_owned())
.unwrap() // unwrap checked above
} else {
name
}
name
// TODO: fix this once the public inputs stuff is added again - information loss breaks the compiler
// if name.ends_with("__is_public") {
// name.strip_suffix("__is_public")
// .map(|s| s.to_owned())
// .unwrap() // unwrap checked above
// } else {
// name
// }
})
.collect();
let public_input_column_names: Vec<String> = witness_columns
.into_iter()
.filter_map(|name| name.strip_suffix("__is_public").map(|s| s.to_owned()))
.filter_map(|name|
if name.ends_with("__is_public") {
Some(name)
} else {None}

// TODO: fix with above
// name.strip_suffix("__is_public").map(|s| s.to_owned())
)
.collect();

assert!(
Expand Down

0 comments on commit bf454c1

Please sign in to comment.