bolt

package
v0.0.0-...-eae8967 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DIDBucket                   = "DIDs"
	PrivateKeyBucket            = "PrKeys"
	CredDefBucket               = "CredDefs"
	CredentialBucket            = "Credentials"
	SchemaBucket                = "Schemas"
	RevocationBucket            = "Revocations"
	PresentationRequestsBucket  = "PresentationRequests"
	PresentationResponsesBucket = "PresentationResponse"

	DBFilename = "credstore.db"
	DBFilemode = 0600
)

Variables

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage() (*Storage, error)

func (Storage) Close

func (s Storage) Close() error

func (Storage) ListCredDefs

func (s Storage) ListCredDefs() ([]ledger.DIDDoc, error)

func (Storage) ListCredentials

func (s Storage) ListCredentials() ([]credential.VerifiableCredential, error)

func (Storage) ListCredentialsForHolder

func (s Storage) ListCredentialsForHolder(id string) ([]credential.VerifiableCredential, error)

func (Storage) ListDIDs

func (s Storage) ListDIDs() ([]ledger.DIDDoc, error)

func (Storage) ListPresentationRequests

func (s Storage) ListPresentationRequests() ([]presentation.CompositeProofRequestInstanceChallenge, error)

func (Storage) ListPresentationResponses

func (s Storage) ListPresentationResponses() ([]presentation.CompositeProofResponseSubmission, error)

func (Storage) ListRevocations

func (s Storage) ListRevocations() ([]ledger.Revocation, error)

func (Storage) ListSchemas

func (s Storage) ListSchemas() ([]ledger.Schema, error)

func (Storage) ReadCredDef

func (s Storage) ReadCredDef(id string) (*ledger.DIDDoc, error)

func (Storage) ReadCredential

func (s Storage) ReadCredential(id string) (*credential.VerifiableCredential, error)

func (Storage) ReadDIDDoc

func (s Storage) ReadDIDDoc(id string) (*ledger.DIDDoc, error)

func (Storage) ReadPresentationRequest

func (s Storage) ReadPresentationRequest(id string) (presentation.CompositeProofRequestInstanceChallenge, error)

func (Storage) ReadPresentationResponse

func (s Storage) ReadPresentationResponse(id string) (presentation.CompositeProofResponseSubmission, error)

func (Storage) ReadPrivateKey

func (s Storage) ReadPrivateKey(did string) (ed25519.PrivateKey, error)

func (Storage) ReadRevocation

func (s Storage) ReadRevocation(id string) (*ledger.Revocation, error)

func (Storage) ReadSchema

func (s Storage) ReadSchema(id string) (*ledger.Schema, error)

func (Storage) WriteCredDef

func (s Storage) WriteCredDef(doc ledger.DIDDoc, controllerDID, schemaID string) error

func (Storage) WriteCredential

func (s Storage) WriteCredential(cred credential.VerifiableCredential) error

func (Storage) WriteDID

func (s Storage) WriteDID(doc ledger.DIDDoc) error

func (Storage) WritePresentationRequest

func (s Storage) WritePresentationRequest(presentationRequest presentation.CompositeProofRequestInstanceChallenge) error

func (Storage) WritePresentationResponse

func (s Storage) WritePresentationResponse(presentationResponse presentation.CompositeProofResponseSubmission) error

func (Storage) WritePrivateKey

func (s Storage) WritePrivateKey(did string, pk ed25519.PrivateKey) error

func (Storage) WriteRevocation

func (s Storage) WriteRevocation(revocation ledger.Revocation) error

func (Storage) WriteSchema

func (s Storage) WriteSchema(schema ledger.Schema) error

Jump to

Keyboard shortcuts

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