Skip to main content

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>

Metadata

Release files for did-resolver 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for did-resolver 0.0.3
File Size Uploaded Provenance Actions
did-resolver-0.0.3.tar.gz 4.4 kB Without provenance Details for did-resolver-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for did-resolver 0.0.3
File Interpreter ABI Platform Actions
did_resolver-0.0.3-py3-none-any.whl Python 3 none any Details for did_resolver-0.0.3-py3-none-any.whl

Total release size: 8.3 kB

Release files / did-resolver-0.0.3.tar.gz

Download URL did-resolver-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1430c7c21279a9a88ee4f02826dfb209b442de4a7cb0b2f03769a2ac97a9d966
BLAKE2b-256 checksum
How to use checksums
9778cdc8164ba27cc0a9e7ae3bc830c6ec91ecbab6738c320438a643ffea1315
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / did_resolver-0.0.3-py3-none-any.whl

Download URL did_resolver-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23181d75cbf5314991969a9eb5962ca77d08fdecfd329ab812af0cc08239eea8
BLAKE2b-256 checksum
How to use checksums
49044702bdf37748cbf12cdaac3c1524abc1d3c6b270df5f5da1042131439d12
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for did-resolver 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page