storage

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredDefStorage

type CredDefStorage interface {
	WriteCredDef(doc ledger.DIDDoc, controllerDID, schemaID string) error
	ReadCredDef(id string) (*ledger.DIDDoc, error)
	ListCredDefs() ([]ledger.DIDDoc, error)
}

type CredentialStorage

type CredentialStorage interface {
	WriteCredential(cred credential.VerifiableCredential) error
	ReadCredential(id string) (*credential.VerifiableCredential, error)
	ListCredentials() ([]credential.VerifiableCredential, error)
	ListCredentialsForHolder(id string) ([]credential.VerifiableCredential, error)
}

TODO key credentials by subject

type DIDStorage

type DIDStorage interface {
	WriteDID(doc ledger.DIDDoc) error
	ReadDIDDoc(id string) (*ledger.DIDDoc, error)
	ListDIDs() ([]ledger.DIDDoc, error)
}

type KeyStorage

type KeyStorage interface {
	WritePrivateKey(did string, pk ed25519.PrivateKey) error
	ReadPrivateKey(did string) (ed25519.PrivateKey, error)
}

type PresentationRequestStorage

type PresentationRequestStorage interface {
	WritePresentationRequest(presentationRequest presentation.CompositeProofRequestInstanceChallenge) error
	ReadPresentationRequest(id string) (presentation.CompositeProofRequestInstanceChallenge, error)
	ListPresentationRequests() ([]presentation.CompositeProofRequestInstanceChallenge, error)
}

type PresentationResponseStorage

type PresentationResponseStorage interface {
	WritePresentationResponse(presentationResponse presentation.CompositeProofResponseSubmission) error
	ReadPresentationResponse(id string) (presentation.CompositeProofResponseSubmission, error)
	ListPresentationResponses() ([]presentation.CompositeProofResponseSubmission, error)
}

type RevocationStorage

type RevocationStorage interface {
	WriteRevocation(revocation ledger.Revocation) error
	ReadRevocation(id string) (*ledger.Revocation, error)
	ListRevocations() ([]ledger.Revocation, error)
}

type SchemaStorage

type SchemaStorage interface {
	WriteSchema(schema ledger.Schema) error
	ReadSchema(id string) (*ledger.Schema, error)
	ListSchemas() ([]ledger.Schema, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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