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.3.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file did-resolver-0.0.3.tar.gz.
File metadata
- Download URL: did-resolver-0.0.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1430c7c21279a9a88ee4f02826dfb209b442de4a7cb0b2f03769a2ac97a9d966
|
|
| MD5 |
1e74a01b5ee6181f18ee61f94902017f
|
|
| BLAKE2b-256 |
9778cdc8164ba27cc0a9e7ae3bc830c6ec91ecbab6738c320438a643ffea1315
|
File details
Details for the file did_resolver-0.0.3-py3-none-any.whl.
File metadata
- Download URL: did_resolver-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23181d75cbf5314991969a9eb5962ca77d08fdecfd329ab812af0cc08239eea8
|
|
| MD5 |
9ab7544aaea873825788a817efc291e8
|
|
| BLAKE2b-256 |
49044702bdf37748cbf12cdaac3c1524abc1d3c6b270df5f5da1042131439d12
|