1 unstable release
0.1.0 | Jun 4, 2024 |
---|
#17 in #claim
19KB
220 lines
dax-rs
Decentralized online identity verification for Rust
Example
To verify an online identity:
use dax::{
claim::Claim, proof::Proof, verify_claim
};
fn main() {
// Prepare
let claim = Claim::new("http://localhost/user/repo");
let proofs = vec![Proof::new(
"openpgp4fpr:1234567890123456789012345678901234567890",
)];
// Verify the claim
let result = verify_claim(&claim, &proofs);
}
About
This repo is compliant with version 3.0 of the REUSE Specification.
Dependencies
~0.7–2.5MB
~49K SLoC