Crates.io | reclaim-rust-sdk |
lib.rs | reclaim-rust-sdk |
version | 0.1.0 |
source | src |
created_at | 2024-12-10 16:36:44.665395 |
updated_at | 2024-12-10 16:36:44.665395 |
description | A Rust SDK for Reclaim Protocol |
homepage | |
repository | https://github.com/reclaimprotocol/reclaim-rust-sdk |
max_upload_size | |
id | 1478702 |
size | 145,202 |
This guide will walk you through integrating the Reclaim Protocol Rust SDK into your application. We'll demonstrate how to use the SDK to verify proofs in your Rust applications.
Add the Reclaim Protocol SDK to your Cargo.toml
file:
[dependencies]
reclaim-rust-sdk = "0.1.0"
tokio = { version = "1.0", features = ["full"] }
Here's a simple example demonstrating how to verify proofs using the Reclaim SDK:
use reclaim_rust_sdk::verify_proof;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize the Reclaim client
let proof_json = r#"
{
<!-- your proof data object -->
}"#;
<!-- proof should be a Proof struct data -->
let proof: reclaim_rust_sdk::Proof = serde_json::from_value(proof_json)?;
// Verify the proof
match client.verify_proof(proof).await {
Ok(result) => {
println!("Proof verification successful!");
println!("Extracted data: {:?}", result.extracted_data);
println!("Context: {:?}", result.context);
},
Err(e) => {
println!("Proof verification failed: {}", e);
}
}
Ok(())
}
Explore the Reclaim Protocol documentation for more advanced features and best practices for integrating the SDK into your production applications.
We welcome contributions to our project! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
Always keep your Application Secret secure. Never expose it in client-side code or public repositories.
Please read and follow our Code of Conduct to ensure a positive and inclusive environment for all contributors.
If you discover any security-related issues, please refer to our Security Policy for information on how to responsibly disclose vulnerabilities.
Before contributing to this project, please read and sign our Contributor License Agreement (CLA).
For Indie Hackers: Check out our guidelines and potential grant opportunities
This project is licensed under a custom license. By contributing to this project, you agree that your contributions will be licensed under its terms.
Thank you for your contributions!