Did management
DID management functions enable the following:
List - lists the available DIDs
Load - loads a DID by the specified id
Delete - deletes a DID by the specified url
Create - creates a new DID
Resolve - resolves a DID to a document
Import - import a DID
For more info on DIDs, go here.
List DID
The /did endpoint lists the available DIDs.
curl -X 'GET' \
'https://custodian.ssikit.walt.id/did' \
-H 'accept: application/json'No parametersThe list of DID stringsE.g. List the available DIDs
curl -X 'GET' \
'https://custodian.ssikit.walt.id/did' \
-H 'accept: application/json'[
"did:key:z6MkkLmAVeM3P6B2LJ2xGrK1wVojCoephK4G9VrCcct42ADX",
"did:web:my.domain",
"did:web:walt.id",
"did:key:z6Mkv58vGsBMwbiyQ3P93MRnYfRgGvn4STEEsj5hFHYe51wu"
]Load DID
The /did/{id} endpoint loads a DID specified by:
id path parameter (required) - the DID url string
E.g Load the DID having the id = did:web:walt.id.
Delete DID
The /did/{id} deletes the DID specified by:
url - path parameter (required) - the DID url string
E.g. Delete the DID having id = did:web:walt.id.
Create DID
The /did/create endpoint creates a DID.
The method and keyAlias properties are common for all did-method requests, method being required, while keyAlias - optional (if not specified, a new key will be automatically created using the default algorithm according to the did-method). The method-dependent options have default values, if not specified otherwise. Below are the available properties by did-method.
useJwkJcsPub(default) - false - specifies whether to create a did:key using the jwk_jcs-pub multicodec (code: 0xeb51)
didWebDomain(default) - "walt.id"didWebPath(default) - empty-string
version(default) - 1
network(default) - "testnet"
E.g. Create a DID using the web method having the domain set to walt.id.
Resolve DID
The /did/resolve endpoint resolves a DID.
E.g. Reslove the DID having id = did:key:z6MkkLmAVeM3P6B2LJ2xGrK1wVojCoephK4G9VrCcct42ADX.
Import DID
The /did/import endpoint resolves and imports the DID to the underlying data store.
The DID url string.
E.g. Import DID having id = did:key:z6Mkm8NbvDnnxJ2t5zLGSkYGCWZiqq11Axr58xQ3ZG1Jss3z.
Last updated
Was this helpful?
