Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor struct { Info *verifiable.Credential CID string }
Anchor contains anchor info plus corresponding hl.
type Graph ¶
type Graph struct {
*Providers
}
Graph manages anchor graph.
func (*Graph) Add ¶
func (g *Graph) Add(vc *verifiable.Credential) (string, error)
Add adds an anchor to the anchor graph. Returns hl that contains anchor information.
func (*Graph) GetDidAnchors ¶
GetDidAnchors returns all anchors that are referencing did suffix starting from hl.
func (*Graph) Read ¶
func (g *Graph) Read(hl string) (*verifiable.Credential, error)
Read reads anchor.
type Providers ¶
type Providers struct { CasWriter casWriter CasResolver casResolver Pkf verifiable.PublicKeyFetcher DocLoader ld.DocumentLoader }
Providers for anchor graph.
Click to show internal directories.
Click to hide internal directories.