orbclient

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *OrbClient)

Option is an option for document handler.

func WithDisableProofCheck

func WithDisableProofCheck(disableProofCheck bool) Option

WithDisableProofCheck sets optional disable proof check flag.

func WithJSONLDDocumentLoader

func WithJSONLDDocumentLoader(docLoader ld.DocumentLoader) Option

WithJSONLDDocumentLoader sets optional document loader.

func WithPublicKeyFetcher

func WithPublicKeyFetcher(pkf verifiable.PublicKeyFetcher) Option

WithPublicKeyFetcher sets optional public key fetcher.

type OrbClient

type OrbClient struct {
	// contains filtered or unexported fields
}

OrbClient implements Orb client.

func New

func New(namespace string, cas common.CASReader, opts ...Option) (*OrbClient, error)

New creates new Orb client.

func (*OrbClient) GetAnchorOrigin

func (c *OrbClient) GetAnchorOrigin(cid, suffix string) (interface{}, error)

GetAnchorOrigin will retrieve anchor credential based on CID, parse Sidetree core index file referenced in anchor credential and return anchor origin.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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