Skip to content

Commit 60912a7

Browse files
committed
stavbe: change AirPrivateInputSerializable fields to public
1 parent 3f3df3e commit 60912a7

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#### [2.0.0-rc2] - 2024-12-12
66

7+
* chore: Expose fields in `AirPrivateInputSerializable` as public for external access [#1900] (https://github.com/lambdaclass/cairo-vm/pull/1900)
8+
79
* fix: Change wildcard getrandom dependency.
810

911
* Update starknet-crypto to 0.7.3, removing the old FieldElement completly in favour of the new Felt (that is Copy).

vm/src/air_private_input.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ use crate::Felt252;
1212
// Serializable format, matches the file output of the python implementation
1313
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
1414
pub struct AirPrivateInputSerializable {
15-
trace_path: String,
16-
memory_path: String,
15+
pub trace_path: String,
16+
pub memory_path: String,
1717
#[serde(skip_serializing_if = "Option::is_none")]
18-
pedersen: Option<Vec<PrivateInput>>,
18+
pub pedersen: Option<Vec<PrivateInput>>,
1919
#[serde(skip_serializing_if = "Option::is_none")]
20-
range_check: Option<Vec<PrivateInput>>,
20+
pub range_check: Option<Vec<PrivateInput>>,
2121
#[serde(skip_serializing_if = "Option::is_none")]
22-
range_check96: Option<Vec<PrivateInput>>,
22+
pub range_check96: Option<Vec<PrivateInput>>,
2323
#[serde(skip_serializing_if = "Option::is_none")]
24-
ecdsa: Option<Vec<PrivateInput>>,
24+
pub ecdsa: Option<Vec<PrivateInput>>,
2525
#[serde(skip_serializing_if = "Option::is_none")]
26-
bitwise: Option<Vec<PrivateInput>>,
26+
pub bitwise: Option<Vec<PrivateInput>>,
2727
#[serde(skip_serializing_if = "Option::is_none")]
28-
ec_op: Option<Vec<PrivateInput>>,
28+
pub ec_op: Option<Vec<PrivateInput>>,
2929
#[serde(skip_serializing_if = "Option::is_none")]
30-
keccak: Option<Vec<PrivateInput>>,
30+
pub keccak: Option<Vec<PrivateInput>>,
3131
#[serde(skip_serializing_if = "Option::is_none")]
32-
poseidon: Option<Vec<PrivateInput>>,
32+
pub poseidon: Option<Vec<PrivateInput>>,
3333
#[serde(skip_serializing_if = "Option::is_none")]
34-
add_mod: Option<PrivateInput>,
34+
pub add_mod: Option<PrivateInput>,
3535
#[serde(skip_serializing_if = "Option::is_none")]
36-
mul_mod: Option<PrivateInput>,
36+
pub mul_mod: Option<PrivateInput>,
3737
}
3838

3939
// Contains only builtin public inputs, useful for library users

0 commit comments

Comments
 (0)