blyss-rs 0.2.0

Rust client for Blyss
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use blyss_rs::proof::private_fetch_merkle_proof;

#[tokio::main(flavor = "current_thread")]
pub async fn main() {
    // Fetches a proof for the "0x06eaa1..." identity commitment, at index 700000
    let proof = private_fetch_merkle_proof(
        "0x06eaa1912c3c31b6c2063e397faaba5ad43052812d5051c9b731c5618fe02c6d",
        "https://blyss-hints.s3.us-east-2.amazonaws.com/lookup-cfg.json",
    )
    .await;
    println!("{:?}", proof);
}