~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/zkwid

0
0
main
22 lines · 499 B Raw History
#![no_std]
extern crate alloc;

use alloc::string::String;
use alloc::vec::Vec;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct ProveInput {
    pub stages: Vec<Vec<u8>>,
    pub seed: [u8; 32],
    pub nonce: [u8; 32],
    pub aud: String,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct Journal {
    pub measurements: Vec<[u8; 32]>,
    pub key: Vec<u8>,
    pub nonce: [u8; 32],
    pub aud: String,
}