1个不稳定版本
0.1.0 | 2024年6月4日 |
---|
#32 在 #声明
在 4 个crate中使用
8KB
138 行
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
~34K SLoC