Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
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.
Click to show internal directories.
Click to hide internal directories.