issuer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredentialTopic = "credentials"
	ProposedEvent   = "proposed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CredHandler

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

func NewCredentialHandler

func NewCredentialHandler(store datastore.Store, reg engine.CredentialRegistry) *CredHandler

func (*CredHandler) IssueCredentialMsg

func (r *CredHandler) IssueCredentialMsg(_ service.DIDCommAction, _ *icprotocol.IssueCredential)

func (*CredHandler) OfferCredentialMsg

func (r *CredHandler) OfferCredentialMsg(_ service.DIDCommAction, _ *icprotocol.OfferCredential)

func (*CredHandler) ProposeCredentialMsg

func (r *CredHandler) ProposeCredentialMsg(e service.DIDCommAction, proposal *icprotocol.ProposeCredential)

func (*CredHandler) RequestCredentialMsg

func (r *CredHandler) RequestCredentialMsg(e service.DIDCommAction, request *icprotocol.RequestCredential)

type CredentialIssuer

type CredentialIssuer interface {
	SendOffer(offer *issuecredential.OfferCredential, myDID, theirDID string) (string, error)
}

type CredentialProposalEvent

type CredentialProposalEvent struct {
	AgentID    string                            `json:"agent_id"`
	MyDID      string                            `json:"my_did"`
	TheirDID   string                            `json:"their_did"`
	ExternalID string                            `json:"external_id"`
	Schema     *datastore.Schema                 `json:"schema"`
	Proposal   issuecredential.PreviewCredential `json:"proposal"`
}

type Provider

type Provider interface {
	Store() datastore.Store
	GetCredentialIssuer() (CredentialIssuer, error)
	GetCredentialEngineRegistry() (engine.CredentialRegistry, error)
}

type Server

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

func New

func New(ctx Provider) (*Server, error)

func (*Server) APISpec

func (r *Server) APISpec() (http.HandlerFunc, error)

func (*Server) RegisterGRPCGateway

func (r *Server) RegisterGRPCGateway(_ *runtime.ServeMux, _ string, _ ...grpc.DialOption)

func (*Server) RegisterGRPCHandler

func (r *Server) RegisterGRPCHandler(server *grpc.Server)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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