No project description provided
Project description
did-resolver
This is a copy of Typescript DID Resolver.
Install
It is available on PyPi
pip install did-resolver
Usage
from did_resolver import Resolver
def get_resolver():
def resolve(did, _1, _2):
return {
"didResolutionMetadata": {"contentType": "application/did+ld+json"},
"didDocument": {
"@context": "https://w3id.org/did/v1",
"id": did,
"verificationMethod": [
{
"id": "owner",
"controller": "1234",
"type": "xyz",
},
],
},
"didDocumentMetadata": {},
}
return {"cardstack": resolve}
example_did = "did:cardstack:1pWMyKj3qfgbTtdBuaWSGUeN70913f2bde84cb36"
print(Resolver(get_resolver()).resolve(example_did))
Publish
pdm plugin add pdm-publish
pdm publish --password <token> ``
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
did-resolver-0.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for did_resolver-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0a4b81971f5ce0c4edcb6de73d8b3cc82ee1c39a1a0eaee74007817a4ff8ef9 |
|
MD5 | de6ade3678b116bd7af46bdd6421b301 |
|
BLAKE2b-256 | 7ffdd03c39e942b642c01c4328892b99be17e2ade8b45d7d94704ad1770cc628 |