witness

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is db implementation of anchor credential witness store.

func New

func New(provider storage.Provider) (*Store, error)

New creates new anchor credential witness store.

func (*Store) AddProof

func (s *Store) AddProof(vcID, witness string, p []byte) error

AddProof adds proof for anchor credential id and witness.

func (*Store) Delete added in v0.1.2

func (s *Store) Delete(vcID string) error

Delete deletes all witnesses associated with VC ID.

func (*Store) Get

func (s *Store) Get(vcID string) ([]*proof.WitnessProof, error)

Get retrieves witnesses for the given vc id.

func (*Store) Put

func (s *Store) Put(vcID string, witnesses []*proof.WitnessProof) error

Put saves witnesses into anchor credential witness store.

Jump to

Keyboard shortcuts

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