diddoctransformer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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 VerifyWebDocumentFromOrbDocument

func VerifyWebDocumentFromOrbDocument(webRR, orbRR *document.ResolutionResult, excludeTags ...string) error

VerifyWebDocumentFromOrbDocument will create web document from orb resolution result and compare that web document with provided web document for equality.

func WebDocumentFromOrbDocument

func WebDocumentFromOrbDocument(webDID string, orbResolutionResult *document.ResolutionResult) (document.Document, error)

WebDocumentFromOrbDocument creates did:web document from did:orb resolution result. Rules: 1. Replace did:orb ID with did:web ID in Orb did document 2. add up to two Orb 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