#去中心化身份 #解析URL #DID #去中心化标识符 #去中心化 #身份

无std did_url_parser

去中心化标识符(DIDs)的无std解析器

1 个不稳定版本

0.2.0 2024年3月26日

#794解析器实现

Download history 47/week @ 2024-04-08 33/week @ 2024-04-15 102/week @ 2024-04-22 46/week @ 2024-04-29 131/week @ 2024-05-06 210/week @ 2024-05-13 129/week @ 2024-05-20 535/week @ 2024-05-27 2297/week @ 2024-06-03 1235/week @ 2024-06-10 715/week @ 2024-06-17 927/week @ 2024-06-24 1934/week @ 2024-07-01 1825/week @ 2024-07-08 538/week @ 2024-07-15 941/week @ 2024-07-22

5,257 每月下载量
10 个crate(2个直接使用)中使用

MIT/Apache

30KB
746

DID URL解析器

去中心化标识符(DIDs)的解析器

l1h3r/did_url的分支。


use did_url_parser::DID;

let did = DID::parse("did:example:alice")?;

// Prints Method = example
println!("Method = {}", did.method());

// Prints Method Id = alice
println!("Method Id = {}", did.method_id());

// Prints DID = did:example:alice
println!("DID = {}", did);

// Prints Joined = did:example:alice?query=true#key-1
println!("Joined = {}", did.join("#key-1")?.join("?query=true")?);

参考


许可证

许可协议为Apache License, Version 2.0或MIT license,任选其一。
除非你明确声明,否则根据Apache-2.0许可证定义的任何有意提交以包含在作品中的贡献,将双重许可如上所述,不附加任何额外条款或条件。

依赖

~195KB