Awesome
Restricted Resolver
Like the universal resolver, but with some restrictions.
- No blockchain DID Methods.
- No JSON-LD Processing, however, valid JSON-LD is returned.
- Ignores accept header.
- Only returns
application/did+ld+json
. did:key
support forsecp256r1
,secp348r1
,secp256k1
,ed25519
,x25519
did:web
support for.well-known
andpath based
DIDs.
Learn more about Transmute.
Docker
docker pull transmute/restricted-resolver
docker run -d -p 8080:8080 transmute/restricted-resolver
curl -sX GET http://localhost:8080/1.0/identifiers/did:jwk:eyJraWQiOiJ1cm46aWV0ZjpwYXJhbXM6b2F1dGg6andrLXRodW1icHJpbnQ6c2hhLTI1NjpGZk1iek9qTW1RNGVmVDZrdndUSUpqZWxUcWpsMHhqRUlXUTJxb2JzUk1NIiwia3R5IjoiT0tQIiwiY3J2IjoiRWQyNTUxOSIsImFsZyI6IkVkRFNBIiwieCI6IkFOUmpIX3p4Y0tCeHNqUlBVdHpSYnA3RlNWTEtKWFE5QVBYOU1QMWo3azQifQ
curl -sX GET http://localhost:8080/1.0/identifiers/did:web:did.actor:supply-chain:manufacturer:carlos
curl -sX GET http://localhost:8080/1.0/identifiers/did:key:z6MkevkjV3woJLJ1p6tSvx9PUTyn7e8cSm9Wy5VjkWUo4WLK
curl -sX GET http://localhost:8080/1.0/identifiers/did:key:zDnaefnQrwjZPFASgQoQoTfrcG65gxHK4qNappjxnv6aiATQt
curl -sX GET http://localhost:8080/1.0/identifiers/did:key:zQ3shk7C2uqYB7jgmCiCxA8DusuMKwc1wjJAHS17pmQvr48Q9
docker stop $(docker ps -q --filter ancestor=transmute/restricted-resolver )
Development
nvm use 18
npm i
npm run start
Visit:
http://localhost:8080/1.0/identifiers/did:key:z6MkevkjV3woJLJ1p6tSvx9PUTyn7e8cSm9Wy5VjkWUo4WLK
http://localhost:8080/1.0/identifiers/did:web:did.actor:supply-chain:manufacturer:carlos
Docker
docker build -f ./Dockerfile . -t restricted-resolver
docker run -d -p 8080:8080 restricted-resolver
docker stop $(docker ps -q --filter ancestor=restricted-resolver )