Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredDefStorage ¶
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 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 PresentationStorage ¶
type PresentationStorage interface { PresentationRequestStorage PresentationResponseStorage }
type RevocationStorage ¶
type RevocationStorage interface { WriteRevocation(revocation ledger.Revocation) error ReadRevocation(id string) (*ledger.Revocation, error) ListRevocations() ([]ledger.Revocation, error) }
type SchemaStorage ¶
type Storage ¶
type Storage interface { DIDStorage KeyStorage CredDefStorage SchemaStorage CredentialStorage RevocationStorage PresentationStorage Close() error }
Click to show internal directories.
Click to hide internal directories.