Documentation ¶
Index ¶
- Constants
- func BetweenStrings(value, first, second string) (string, error)
- func GetAnchorOrigin(metadata document.Metadata) (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) (did, keyID string, err error)
Constants ¶
View Source
const MinOakIdentifierParts = 4
MinOakIdentifierParts is minimum number of parts in Oak identifier.
Variables ¶
This section is empty.
Functions ¶
func BetweenStrings ¶
BetweenStrings returns string between first and second string.
func GetAnchorOrigin ¶
GetAnchorOrigin returns anchor origin from document metadata.
func GetMethodMetadata ¶
GetMethodMetadata retrieves method metadata from document metadata.
func GetOperationsAfterCanonicalReference ¶
func GetOperationsAfterCanonicalReference(ref string, anchorOps []*operation.AnchoredOperation) []*operation.AnchoredOperation
GetOperationsAfterCanonicalReference retrieves operations after canonical references. assumption: operations are sorted by transaction time
func GetPublishedOperationsFromMetadata ¶
func GetPublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
GetPublishedOperationsFromMetadata will retrieve published operations from metadata.
func GetUnpublishedOperationsFromMetadata ¶
func GetUnpublishedOperationsFromMetadata(metadata document.Metadata) ([]*operation.AnchoredOperation, error)
GetUnpublishedOperationsFromMetadata will retrieve unpublished operations from metadata.
func ParseKeyURI ¶
ParseKeyURI parses the key IRI and returns the DID and the key ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.