did-peer

Crates.iodid-peer
lib.rsdid-peer
version0.1.13
sourcesrc
created_at2024-09-09 10:47:54.980181
updated_at2024-10-01 11:12:08.7605
descriptionImplementation of the did:peer method in Rust, uses the ssi crate
homepagehttps://affinidi.com/
repositoryhttps://github.com/affinidi/affinidi-did-resolver
max_upload_size
id1369135
size209,962
(affinidibot)

documentation

README

did-peer Rust implementation

Only supports did:peer numalgo 0,2 (did:peer:0, did:peer:2)

NOTE: serviceEndpoint.id should be an IRI (e.g. #service). Due to a limitation of the SSI Crate Document type, we must use a URI. Instead of #service we resolve to did:peer:#service

Build a WebAssembly package

Prerequisite: wasm-pack

wasm-pack build --target web --out-dir www/pkg

this places compiled wasm files into the ./www/pkg/ directory.

Serve the website locally, run from the ./www/ directory of the project python3 -m http.server

Website available here

Examples

To run examples cargo run --example <command>

Generate a random did:peer and corresponding DID document cargo run --example generate

Resolve a did:peer to a DID Document cargo run --example resolve <did:peer:2.*>

Commit count: 23

cargo fmt