lynx_verifier 0.1.0

Lynx test verifier
Documentation
1
2
3
4
5
6
7
8
9
10
11
use sha2::{Sha256, Digest};

pub fn verify(vk: Vec<u8>, 
    proof: Vec<u8>, pubs: Vec<u8>) -> 
    bool {
    let combined = [vk, pubs].concat();
    let proof_hash = Sha256::digest(&proof);
    let combined_hash = Sha256::digest(&combined);

    proof_hash == combined_hash
}