Documentation ¶
Index ¶
- type CredentialEngine
- type CredentialRegistry
- type Option
- type Registry
- func (r *Registry) CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error)
- func (r *Registry) CreateSchema(s *datastore.Schema) (string, error)
- func (r *Registry) GetSchemaForProposal(format string, data []byte) (string, error)
- func (r *Registry) IssueCredential(issuer *datastore.DID, s *datastore.Schema, offerID string, ...) (*decorator.AttachmentData, error)
- func (r *Registry) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialEngine ¶
type CredentialEngine interface { Accept(format string) bool CreateSchema(issuer *datastore.DID, s *datastore.Schema) (string, error) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error) IssueCredential(issuerDID *datastore.DID, s *datastore.Schema, offerID string, requestAttachment decorator.AttachmentData, values map[string]interface{}) (*decorator.AttachmentData, error) GetSchemaForProposal(proposal []byte) (string, error) }
type CredentialRegistry ¶
type CredentialRegistry interface { CreateSchema(s *datastore.Schema) (string, error) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error) IssueCredential(issuer *datastore.DID, s *datastore.Schema, offerID string, requestAttachment decorator.AttachmentData, values map[string]interface{}) (*decorator.AttachmentData, error) GetSchemaForProposal(format string, data []byte) (string, error) }
type Option ¶
type Option func(opts *Registry)
func WithEngine ¶
func WithEngine(e CredentialEngine) Option
WithEngine adds did method implementation for store.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) CreateCredentialOffer ¶
func (*Registry) CreateSchema ¶
func (*Registry) GetSchemaForProposal ¶
func (*Registry) IssueCredential ¶
Click to show internal directories.
Click to hide internal directories.