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 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.
Click to show internal directories.
Click to hide internal directories.