rename some old id to sts_hash (#402)

This commit is contained in:
Eduard S. 2025-08-28 02:48:43 +02:00 committed by GitHub
parent 0e2f7b756e
commit 511efa8d44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 37 deletions

View file

@ -784,7 +784,7 @@ impl Pod for MainPod {
params: Params,
data: serde_json::Value,
vd_set: VDSet,
id: Hash,
sts_hash: Hash,
) -> Result<Self> {
let data: Data = serde_json::from_value(data)?;
let common = cache_get_rec_main_pod_common_circuit_data(&params);
@ -792,7 +792,7 @@ impl Pod for MainPod {
let verifier_only = deserialize_verifier_only(&data.verifier_only)?;
Ok(Self {
params,
sts_hash: id,
sts_hash,
verifier_only,
common_hash: data.common_hash,
vd_set,

View file

@ -87,11 +87,11 @@ impl Pod for MockEmptyPod {
params: Params,
_data: serde_json::Value,
vd_set: VDSet,
id: Hash,
sts_hash: Hash,
) -> Result<Self> {
Ok(Self {
params,
sts_hash: id,
sts_hash,
vd_set,
})
}

View file

@ -338,7 +338,7 @@ impl Pod for MockMainPod {
params: Params,
data: serde_json::Value,
vd_set: VDSet,
id: Hash,
sts_hash: Hash,
) -> Result<Self> {
let Data {
public_statements,
@ -351,13 +351,13 @@ impl Pod for MockMainPod {
} = serde_json::from_value(data)?;
let input_pods = input_pods
.into_iter()
.map(|(pod_type, params, id, vd_set, data)| {
deserialize_pod(pod_type, params, id, vd_set, data)
.map(|(pod_type, params, sts_hash, vd_set, data)| {
deserialize_pod(pod_type, params, sts_hash, vd_set, data)
})
.collect::<Result<Vec<_>>>()?;
Ok(Self {
params,
sts_hash: id,
sts_hash,
vd_set,
input_pods,
public_statements,