mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-05-21 00:39:29 +00:00
18 lines
410 B
Rust
18 lines
410 B
Rust
use cl::crust::BundleWitness;
|
|
use hex::FromHex;
|
|
use risc0_zkvm::{guest::env, serde};
|
|
|
|
fn main() {
|
|
let bundle_private: BundleWitness = env::read();
|
|
|
|
for tx in &bundle_private.txs {
|
|
env::verify(
|
|
<[u8; 32]>::from_hex(risc0_images::risc0_proofs::TX_ID).unwrap(),
|
|
&serde::to_vec(&tx).unwrap(),
|
|
)
|
|
.unwrap();
|
|
}
|
|
|
|
env::commit(&bundle_private.commit());
|
|
}
|