zkdoc_sdk

Usage

First, add it with cargo like so:

bash cargo add zkdoc_sdk

Now, you can start using it!

```rust use zkdocsdk::services::services::{ generateproof, getfilecommitmentandselectedrow, getselectedrow, verifycorrect_selector, };

fn main() { // Generate a commitment, and save it somewhere for verification later let commitment = getfilecommitmentandselectedrow( rowtitles.toowned(), rowcontents.toowned(), rowselectors.to_owned(), );

// Generate proofs here let proof = generateproof( rowtitles.toowned(), rowcontents.toowned(), rowselectors.to_owned(), );

// Verify proofs like so let rowaccumulator = getselectedrow(rowtitle.toowned(), rowcontent.toowned()); let isvalid = verifycorrectselector( commitment, row_accumulator, proof, );

} ```

API documentation

The full api docs is available at doc.rs.