#affinidi #ssi

did-example

Implementation of did:example in Rust

15 releases

Uses new Rust 2024

new 0.5.7 Apr 17, 2026
0.5.6 Feb 1, 2026
0.5.5 Sep 30, 2025
0.5.4 Jul 14, 2025
0.5.2 Mar 24, 2025

#21 in #affinidi

Download history 8/week @ 2025-12-30 30/week @ 2026-01-06 27/week @ 2026-01-13 12/week @ 2026-01-20 5/week @ 2026-01-27 31/week @ 2026-02-10 89/week @ 2026-02-17 143/week @ 2026-02-24 166/week @ 2026-03-03 181/week @ 2026-03-10 84/week @ 2026-03-17 167/week @ 2026-03-24 40/week @ 2026-03-31 65/week @ 2026-04-07 267/week @ 2026-04-14

592 downloads per month
Used in 2 crates (via affinidi-did-resolver-cac…)

Apache-2.0

185KB
4K SLoC

did-example

Crates.io Documentation Rust License

A did:example implementation for testing and development. Creates non-deterministic example DID Documents that must be manually loaded into the resolver.

Installation

[dependencies]
did-example = "0.5"

Usage

Unlike deterministic DID methods (e.g., did:key), did:example documents cannot be auto-resolved. You must manually add documents to the resolver:

// Documents must be registered before they can be resolved
resolver.add_example_document(did, document);

Enable in the resolver SDK with the did_example feature flag:

[dependencies]
affinidi-did-resolver-cache-sdk = { version = "0.8", features = ["did_example"] }

License

Apache-2.0

Dependencies

~9–12MB
~227K SLoC