diddoctransformer

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(doc1, doc2 document.Document, excludeTags ...string) error

Equal transforms documents into canonical form and compares them. Exclude tags (optional) will be removed from document before comparison.

func VerifyWebDocumentFromOakDocument

func VerifyWebDocumentFromOakDocument(webRR, oakRR *document.ResolutionResult, excludeTags ...string) error

VerifyWebDocumentFromOakDocument will create web document from oak resolution result and compare that web document with provided web document for equality.

func WebDocumentFromOakDocument

func WebDocumentFromOakDocument(webDID string, oakResolutionResult *document.ResolutionResult) (document.Document, error)

WebDocumentFromOakDocument creates did:web document from did:oak resolution result. Rules: 1. Replace did:oak ID with did:web ID in Oak did document 2. add up to two Oak equivalent IDs to also known as (equivalentID with discovery domain for unpublished or canonical ID and HL ID for published).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL