sp1_lib::io

Function commit_slice

Source
pub fn commit_slice(buf: &[u8])
Expand description

Commit bytes to the public values stream.

§Examples

let data = vec![1, 2, 3, 4];
sp1_zkvm::io::commit_slice(&data);