package
4.3.1+incompatible
Repository: https://github.com/nuts-foundation/nuts-node.git
Documentation: pkg.go.dev
# Functions
ByServiceType returns a predicate that matches on service type it only matches on DID Documents with a concrete endpoint (not starting with "did").
CreateDocument creates an empty DID document with baseline properties set.
CreateNewVerificationMethodForDID creates a new VerificationMethod of type JsonWebKey2020 with a freshly generated key for a given DID.
DefaultCreationOptions returns the default DIDCreationOptions when creating DID Documents.
ExtractAssertionKeyID returns a assertionMethod ID from the given DID document.
IsActive returns a predicate that matches DID Documents that are not deactivated.
IsServiceReference checks whether the given endpoint string looks like a service reference (e.g.
MakeServiceReference creates a service reference, which can be used as query when looking up services.
MergeDocuments merges two DID Documents that share the same ID.
NewMockServiceResolver creates a new mock instance.
NewServiceResolver creates a ServiceResolver with the specified types.DocResolver.
ValidAt returns a predicate that matches on validity period.
ValidateServiceReference checks whether the given URI matches the format for a service reference.
# Constants
DefaultMaxServiceReferenceDepth holds the default max.
NutsDIDMethodName is the DID method name used by Nuts.
# Variables
ErrDiffID is returned when a merge is done on documents that do not share the same ID.
ErrInvalidOptions is returned when the given options have an invalid combination.
ErrNestedDocumentsTooDeep is returned when a DID Document contains a multiple services with the same type.
# Structs
Creator implements the DocCreator interface and can create Nuts DID Documents.
Finder is a helper that implements the DocFinder interface.
KeyResolver implements the KeyResolver interface with a types.Store as backend.
Manipulator contains helper methods to update a Nuts DID document.
MockServiceResolver is a mock of ServiceResolver interface.
MockServiceResolverMockRecorder is the mock recorder for MockServiceResolver.
Resolver implements the DocResolver interface with a types.Store as backend.
No description provided by the author
# Interfaces
ServiceResolver allows looking up DID document services, following references.