util

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifiableCredentialFromAnchorLink(anchorLink *linkset.Link, opts ...verifiable.CredentialOpt) (*verifiable.Credential, error)

VerifiableCredentialFromAnchorLink validates the AnchorEvent and returns the embedded verifiable credential.

Types

type AnchorData

type AnchorData struct {
	OperationCount   uint64
	CoreIndexFileURI string
}

AnchorData holds anchored data.

func ParseAnchorString

func ParseAnchorString(anchor string) (*AnchorData, error)

ParseAnchorString will parse anchor string into anchor data model.

func (*AnchorData) GetAnchorString

func (ad *AnchorData) GetAnchorString() string

GetAnchorString will create anchor string from anchor data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL