add cms to the ledger when proving

This commit is contained in:
Giacomo Pasini 2025-02-25 19:14:55 +01:00
parent 643dbb8e55
commit bc8c3b6f73
No known key found for this signature in database
GPG Key ID: FC08489D2D895D4B

View File

@ -53,6 +53,16 @@ impl ProvedLedgerTransition {
nf_proofs: ledger.add_nullifiers(nullifiers),
};
for bundle in &witness.bundles {
for update in &bundle.bundle.updates {
if update.zone_id == zone_id {
for cm in &update.outputs {
ledger.add_commitment(cm);
}
}
}
}
witness.write(&mut env);
let env = env.build().unwrap();