Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *ResolutionVerifier)
Option is an option for document verifier.
func WithAnchorOrigins ¶
WithAnchorOrigins sets optional allowed anchor origins.
func WithCurrentProtocolVersion ¶
WithCurrentProtocolVersion sets optional current protocol versions. Defaults to the latest in the protocol versions list.
func WithEnableBase ¶
WithEnableBase sets optional @base(JSON-LD directive).
func WithMethodContext ¶
WithMethodContext sets optional method contexts.
func WithProtocolVersions ¶
WithProtocolVersions sets optional client protocol versions.
type ResolutionVerifier ¶
type ResolutionVerifier struct {
// contains filtered or unexported fields
}
ResolutionVerifier verifies resolved documents.
func New ¶
func New(namespace string, opts ...Option) (*ResolutionVerifier, error)
New returns a new resolution verifier.
func (*ResolutionVerifier) Verify ¶
func (r *ResolutionVerifier) Verify(input *document.ResolutionResult) error
Verify will verify provided resolution result against resolution result that is assembled from published and unpublished operations in provided resolution result.