Skip to content

Commit

Permalink
Fix prover input.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-Ti committed Jul 1, 2024
1 parent b70d141 commit 78468a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions vm/src/air_private_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub struct AirPrivateInputSerializable {
#[serde(skip_serializing_if = "Option::is_none")]
range_check: Option<Vec<PrivateInput>>,
#[serde(skip_serializing_if = "Option::is_none")]
range_check96: Option<Vec<PrivateInput>>,
#[serde(skip_serializing_if = "Option::is_none")]
ecdsa: Option<Vec<PrivateInput>>,
#[serde(skip_serializing_if = "Option::is_none")]
bitwise: Option<Vec<PrivateInput>>,
Expand Down Expand Up @@ -157,6 +159,7 @@ impl AirPrivateInput {
memory_path,
pedersen: self.0.get(&BuiltinName::pedersen).cloned(),
range_check: self.0.get(&BuiltinName::range_check).cloned(),
range_check96: self.0.get(&BuiltinName::range_check96).cloned(),
ecdsa: self.0.get(&BuiltinName::ecdsa).cloned(),
bitwise: self.0.get(&BuiltinName::bitwise).cloned(),
ec_op: self.0.get(&BuiltinName::ec_op).cloned(),
Expand Down
1 change: 0 additions & 1 deletion vm/src/vm/runners/builtin_runner/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ impl SignatureBuiltinRunner {
private_inputs.push(PrivateInput::Signature(PrivateInputSignature {
index: addr
.offset
.saturating_sub(self.base)
.checked_div(CELLS_PER_SIGNATURE as usize)
.unwrap_or_default(),
pubkey: *pubkey,
Expand Down

0 comments on commit 78468a3

Please sign in to comment.