verifiable

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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 implements storage for verifiable credentials.

func New

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

New returns new instance of verifiable credentials store.

func (*Store) Get

func (s *Store) Get(id string) (*verifiable.Credential, error)

Get retrieves verifiable credential by id.

func (*Store) Put

func (s *Store) Put(vc *verifiable.Credential) error

Put saves a verifiable credential. If it it already exists it will be overwritten.

Jump to

Keyboard shortcuts

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