validator: Add TODO note about RAM usage for circuit VKs

This commit is contained in:
parazyd
2024-01-19 13:03:38 +01:00
parent f733f094e7
commit 36315f09fd

View File

@@ -436,6 +436,7 @@ pub async fn verify_transaction(
debug!(target: "validator::verification::verify_transaction", "Successfully executed \"metadata\" call");
// Here we'll look up verifying keys and insert them into the per-contract map.
// TODO: This can potentially use a lot of RAM. Perhaps load keys on-demand at verification time?
debug!(target: "validator::verification::verify_transaction", "Performing VerifyingKey lookups from the sled db");
for (zkas_ns, _) in &zkp_pub {
let inner_vk_map = verifying_keys.get_mut(&call.data.contract_id.to_bytes()).unwrap();