Documentation ¶
Index ¶
- Constants
- Variables
- type Storage
- func (s Storage) Close() error
- func (s Storage) ListCredDefs() ([]ledger.DIDDoc, error)
- func (s Storage) ListCredentials() ([]credential.VerifiableCredential, error)
- func (s Storage) ListCredentialsForHolder(id string) ([]credential.VerifiableCredential, error)
- func (s Storage) ListDIDs() ([]ledger.DIDDoc, error)
- func (s Storage) ListPresentationRequests() ([]presentation.CompositeProofRequestInstanceChallenge, error)
- func (s Storage) ListPresentationResponses() ([]presentation.CompositeProofResponseSubmission, error)
- func (s Storage) ListRevocations() ([]ledger.Revocation, error)
- func (s Storage) ListSchemas() ([]ledger.Schema, error)
- func (s Storage) ReadCredDef(id string) (*ledger.DIDDoc, error)
- func (s Storage) ReadCredential(id string) (*credential.VerifiableCredential, error)
- func (s Storage) ReadDIDDoc(id string) (*ledger.DIDDoc, error)
- func (s Storage) ReadPresentationRequest(id string) (presentation.CompositeProofRequestInstanceChallenge, error)
- func (s Storage) ReadPresentationResponse(id string) (presentation.CompositeProofResponseSubmission, error)
- func (s Storage) ReadPrivateKey(did string) (ed25519.PrivateKey, error)
- func (s Storage) ReadRevocation(id string) (*ledger.Revocation, error)
- func (s Storage) ReadSchema(id string) (*ledger.Schema, error)
- func (s Storage) ValidatePresentationRequest(pr presentation.UnsignedCompositeProofRequestInstanceChallenge) error
- func (s Storage) WriteCredDef(doc ledger.DIDDoc, controllerDID, schemaID string) error
- func (s Storage) WriteCredential(cred credential.VerifiableCredential) error
- func (s Storage) WriteDID(doc ledger.DIDDoc) error
- func (s Storage) WritePresentationRequest(presentationRequest presentation.CompositeProofRequestInstanceChallenge) error
- func (s Storage) WritePresentationResponse(presentationResponse presentation.CompositeProofResponseSubmission) error
- func (s Storage) WritePrivateKey(did string, pk ed25519.PrivateKey) error
- func (s Storage) WriteRevocation(revocation ledger.Revocation) error
- func (s Storage) WriteSchema(schema ledger.Schema) error
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 ¶
View Source
var ( Buckets = []string{ DIDBucket, PrivateKeyBucket, CredDefBucket, SchemaBucket, CredentialBucket, RevocationBucket, PresentationRequestsBucket, PresentationResponsesBucket, } )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (Storage) ListCredentials ¶
func (s Storage) ListCredentials() ([]credential.VerifiableCredential, error)
func (Storage) ListCredentialsForHolder ¶
func (s Storage) ListCredentialsForHolder(id string) ([]credential.VerifiableCredential, 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) ReadCredential ¶
func (s Storage) ReadCredential(id string) (*credential.VerifiableCredential, 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) ValidatePresentationRequest ¶
func (s Storage) ValidatePresentationRequest(pr presentation.UnsignedCompositeProofRequestInstanceChallenge) error
func (Storage) WriteCredDef ¶
func (Storage) WriteCredential ¶
func (s Storage) WriteCredential(cred credential.VerifiableCredential) 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
Click to show internal directories.
Click to hide internal directories.