1个不稳定版本
0.1.0 | 2024年6月4日 |
---|
#491 in 数学
在dax中使用
11KB
147 行
dax-rs
Rust的去中心化在线身份验证
示例
验证在线身份
use dax::{
claim::Claim, proof::Proof, verify_claim
};
fn main() {
// Prepare
let claim = Claim::new("https://127.0.0.1/user/repo");
let proofs = vec![Proof::new(
"openpgp4fpr:1234567890123456789012345678901234567890",
)];
// Verify the claim
let result = verify_claim(&claim, &proofs);
}
关于
此仓库符合REUSE规范 3.0版本。
依赖关系
~0.7–1.6MB
~35K SLoC