Function risc0_zkvm::guest::env::write

source ·
pub fn write<T: Serialize>(data: &T)
Expand description

Serialize the given data and write it to the STDOUT of the zkVM.

This is available to the host as the private output on the prover. Some implementations, such as [risc0-r0vm] will also write the data to the host’s stdout file descriptor. It is not included in the receipt.