pub fn nonce(blockid: [u8; 32], predicate: &Predicate, maxtime: u64) -> Self {
        let mut t = Transcript::new(b"ZkVM.nonce");
        t.commit_bytes(b"blockid", &blockid);
        t.commit_bytes(b"predicate", predicate.to_point().as_bytes());
        t.commit_u64(b"maxtime", maxtime);
        let mut nonce = [0u8; 32];
        t.challenge_bytes(b"anchor", &mut nonce);
        Self(nonce)
    }
/// Computes a nonce anchor from its components
Computes a nonce anchor from its components
Computes a nonce anchor from its components
pub fn nonce(blockid: [u8; 32], predicate: &Predicate, maxtime: u64) -> Self {
        let mut t = Transcript::new(b"ZkVM.nonce");
        t.commit_bytes(b"blockid", &blockid);
        t.commit_bytes(b"predicate", predicate.to_point().as_bytes());
        t.commit_u64(b"maxtime", maxtime);
        let mut nonce = [0u8; 32];
        t.challenge_bytes(b"anchor", &mut nonce);
        Self(nonce)
    }
pub fn nonce ( blockid : [ u8 ; 32 ] , predicate : & Predicate , maxtime : u64 ) -> Self { let mut t = Transcript :: new ( b" " ) ; t . commit_bytes ( b" " , & blockid ) ; t . commit_bytes ( b" " , predicate . to_point ( ) . as_bytes ( ) ) ; t . commit_u64 ( b" " , maxtime ) ; let mut nonce = [ 0u8 ; 32 ] ; t . challenge_bytes ( b" " , & mut nonce ) ; Self ( nonce ) }
Computes a nonce anchor from its components
Computes a nonce anchor from its components
blockid
[u8; 32]
predicate
&Predicate
maxtime
u64
blockid
[u8; 32]
predicate
&Predicate
maxtime
u64