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 cid.
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 cid that contains anchor information.
func (*Graph) GetDidAnchors ¶
GetDidAnchors returns all anchors that are referencing did suffix starting from cid.
func (*Graph) Read ¶
func (g *Graph) Read(cid string) (*verifiable.Credential, error)
Read reads anchor.
type Providers ¶
type Providers struct {
Cas cas.Client
Pkf verifiable.PublicKeyFetcher
DocLoader ld.DocumentLoader
}
Providers for anchor graph.
Click to show internal directories.
Click to hide internal directories.