Documentation ¶
Index ¶
- Constants
- func BetweenStrings(value, first, second string) (string, error)
- func GetAnchorOrigin(metadata document.Metadata) (string, error)
- func GetEndpointFromDIDWeb(id string, noTLS bool) (string, error)
- func GetHint(id, namespace, suffix string) (string, error)
- func GetMethodMetadata(metadata document.Metadata) (map[string]interface{}, error)
- func GetOperationsAfterCanonicalReference(ref string, anchorOps []*operation.AnchoredOperation) []*operation.AnchoredOperation
- func GetPublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
- func GetSuffix(id string) (string, error)
- func GetUnpublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
- func IsDID(uri string) bool
- func ParseKeyURI(keyIRI string) (string, string, error)
Constants ¶
const MinOrbIdentifierParts = 4
MinOrbIdentifierParts is minimum number of parts in Orb identifier.
Variables ¶
This section is empty.
Functions ¶
func BetweenStrings ¶
BetweenStrings returns string between first and second string.
func GetAnchorOrigin ¶ added in v1.0.0
GetAnchorOrigin returns anchor origin from document metadata.
func GetEndpointFromDIDWeb ¶ added in v1.0.0
GetEndpointFromDIDWeb returns the HTTP/HTTPS endpoint URL from the given did:web DID.
func GetMethodMetadata ¶ added in v1.0.0
GetMethodMetadata retrieves method metadata from document metadata.
func GetOperationsAfterCanonicalReference ¶ added in v1.0.0
func GetOperationsAfterCanonicalReference(ref string, anchorOps []*operation.AnchoredOperation) []*operation.AnchoredOperation
GetOperationsAfterCanonicalReference retrieves operations after canonical references. assumption: operations are sorted by transaction time
func GetPublishedOperationsFromMetadata ¶ added in v1.0.0
func GetPublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
GetPublishedOperationsFromMetadata will retrieve published operations from metadata.
func GetUnpublishedOperationsFromMetadata ¶ added in v1.0.0
func GetUnpublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
GetUnpublishedOperationsFromMetadata will retrieve unpublished operations from metadata.
Types ¶
This section is empty.