solid-pod-rs-didkey
W3C did:key (Ed25519 / P-256 / secp256k1) resolver and self-signed JWT
verifier for solid-pod-rs.
What it does
- Parses and encodes
did:key:z...multibase identifiers. - Resolves a
did:keyto a W3C DID Document with verification methods. - Verifies compact JWS tokens self-signed by an embedded
did:key. - Implements
solid_pod_rs::SelfSignedVerifierso it plugs into the coreCidVerifierdispatcher.
Supported key types
| Multicodec | Algorithm | JWS alg |
|---|---|---|
| 0xed | Ed25519 | EdDSA |
| 0x1200 | P-256 | ES256 |
| 0xe7 | secp256k1 | ES256K |
Quick start
use ;
let did = "did:key:z6MkiTBz1ymuepAQ4HEHYSF1H8quG5GLVVQR3djdX3mDooWp";
let pubkey = decode_did_key.unwrap;
let roundtrip = encode_did_key;
assert_eq!;
Licence
AGPL-3.0-only