Class: exports

exports(dock)

new exports(dock)

Parameters:
Name Type Description
dock any An initialized connection to a dock full-node.
Source:

exports(idopt)

new exports(idopt)

Creates a new `Schema` object
Parameters:
Name Type Attributes Description
id string <optional>
optional schema ID, if not given, generate a random id
Source:

exports(resolvers, catchAll)

new exports(resolvers, catchAll)

Create a Resolver which delegates to the appropriate child Resolver according to an index.
Parameters:
Name Type Description
resolvers object A map from DID method name to a Resolver. The resolvers must either inherit from DIDResolver, or be an async function from DID string to DIDDocument which throws NoDIDError when and only when the did in question does not exist.
catchAll DIDResolver | null An optional fallback to use when index does not specify an implementation for the requested method.
Source:

exports()

exports(publicKey, verRels)

new exports(publicKey, verRels)

Parameters:
Name Type Description
publicKey PublicKey
verRels VerificationRelationship
Source:

exports(url)

new exports(url)

Create an adapter to a [universal-resolver](https://github.com/decentralized-identity/universal-resolver) instance. The adapter has type [DIDResolver](https://github.com/decentralized-identity/did-resolver/blob/02bdaf1687151bb934b10093042e576ed54b229c/src/resolver.ts#L73).
Parameters:
Name Type Description
url string address of an instance of universal-resolver.
Source:

exports(controllersopt)

new exports(controllersopt)

Constructs a OneOfPolicy with given controllers
Parameters:
Name Type Attributes Description
controllers any <optional>
Controller set
Source:

exports(config)

exports(config)

exports(config)

exports(config)

exports(config)