Documentation ¶
Overview ¶
Package rest represents REST API.
Index ¶
- type Aries
- func (ar *Aries) GetBlindedRoutingController() (api.BlindedRoutingController, error)
- func (ar *Aries) GetDIDClient() (api.DIDClient, error)
- func (ar *Aries) GetDIDExchangeController() (api.DIDExchangeController, error)
- func (ar *Aries) GetIntroduceController() (api.IntroduceController, error)
- func (ar *Aries) GetIssueCredentialController() (api.IssueCredentialController, error)
- func (ar *Aries) GetKMSController() (api.KMSController, error)
- func (ar *Aries) GetLDController() (api.LDController, error)
- func (ar *Aries) GetMediatorClientController() (api.MediatorClient, error)
- func (ar *Aries) GetMediatorController() (api.MediatorController, error)
- func (ar *Aries) GetMessagingController() (api.MessagingController, error)
- func (ar *Aries) GetOutOfBandController() (api.OutOfBandController, error)
- func (ar *Aries) GetOutOfBandV2Controller() (api.OutOfBandV2Controller, error)
- func (ar *Aries) GetPresentProofController() (api.PresentProofController, error)
- func (ar *Aries) GetVCWalletController() (api.VCWalletController, error)
- func (ar *Aries) GetVDRController() (api.VDRController, error)
- func (ar *Aries) GetVerifiableController() (api.VerifiableController, error)
- func (ar *Aries) RegisterHandler(h api.Handler, topics string) string
- func (ar *Aries) UnregisterHandler(id string)
- type BlindedRouting
- type DIDClient
- func (dc *DIDClient) CreateOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (dc *DIDClient) CreatePeerDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (dc *DIDClient) ResolveOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (dc *DIDClient) ResolveWebDIDFromOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (dc *DIDClient) VerifyWebDIDFromOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- type DIDExchange
- func (de *DIDExchange) AcceptExchangeRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) CreateConnection(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) CreateImplicitInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) QueryConnectionByID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) QueryConnections(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) ReceiveInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (de *DIDExchange) RemoveConnection(request *models.RequestEnvelope) *models.ResponseEnvelope
- type Incoming
- type Introduce
- func (ir *Introduce) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) AcceptProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) AcceptProposalWithOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) AcceptRequestWithPublicOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) AcceptRequestWithRecipients(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) DeclineProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) DeclineRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) SendProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) SendProposalWithOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ir *Introduce) SendRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- type IssueCredential
- func (ic *IssueCredential) AcceptCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) AcceptOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) AcceptProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) AcceptRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) DeclineCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) DeclineOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) DeclineProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) DeclineRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) NegotiateProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) SendOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) SendProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (ic *IssueCredential) SendRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- type KMS
- type LD
- func (c *LD) AddContexts(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (c *LD) AddRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (c *LD) DeleteRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (c *LD) GetAllRemoteProviders(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (c *LD) RefreshAllRemoteProviders(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (c *LD) RefreshRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
- type Mediator
- func (m *Mediator) BatchPickup(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) Connections(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) Reconnect(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) ReconnectAll(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) Register(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) Status(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Mediator) Unregister(request *models.RequestEnvelope) *models.ResponseEnvelope
- type MediatorClient
- func (mc *MediatorClient) Connect(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (mc *MediatorClient) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (mc *MediatorClient) SendCreateConnectionRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
- type Messaging
- func (m *Messaging) RegisterHTTPService(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Messaging) RegisterService(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Messaging) Reply(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Messaging) Send(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Messaging) Services(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (m *Messaging) UnregisterService(request *models.RequestEnvelope) *models.ResponseEnvelope
- type OutOfBand
- func (oob *OutOfBand) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (oob *OutOfBand) ActionContinue(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (oob *OutOfBand) ActionStop(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (oob *OutOfBand) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (oob *OutOfBand) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
- type OutOfBandV2
- type PresentProof
- func (p *PresentProof) AcceptPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) AcceptProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) AcceptRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) DeclinePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) DeclineProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) DeclineRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) NegotiateRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) SendProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (p *PresentProof) SendRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- type VCWallet
- func (wallet *VCWallet) Add(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Close(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Connect(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) CreateKeyPair(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) CreateProfile(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Derive(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Get(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) GetAll(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Issue(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Open(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) PresentProof(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) ProfileExists(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) ProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Prove(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Query(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Remove(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) UpdateProfile(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (wallet *VCWallet) Verify(request *models.RequestEnvelope) *models.ResponseEnvelope
- type VDR
- func (v *VDR) GetDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (v *VDR) GetDIDRecords(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (v *VDR) ResolveDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (v *VDR) SaveDID(request *models.RequestEnvelope) *models.ResponseEnvelope
- type Verifiable
- func (vr *Verifiable) GeneratePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GeneratePresentationByID(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GetCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GetCredentialByName(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GetCredentials(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GetPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) GetPresentations(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) RemoveCredentialByName(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) RemovePresentationByName(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) SaveCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) SavePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) SignCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
- func (vr *Verifiable) ValidateCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aries ¶
type Aries struct { URL string WebsocketURL string Token string // contains filtered or unexported fields }
Aries is an Aries implementation with endpoints to execute operations.
func NewAries ¶
NewAries returns a new Aries instance. Use this if you want your requests to be handled by a remote agent.
func (*Aries) GetBlindedRoutingController ¶
func (ar *Aries) GetBlindedRoutingController() (api.BlindedRoutingController, error)
GetBlindedRoutingController returns a BlindedRoutingClient instance.
func (*Aries) GetDIDClient ¶
GetDIDClient returns a DIDClient instance.
func (*Aries) GetDIDExchangeController ¶
func (ar *Aries) GetDIDExchangeController() (api.DIDExchangeController, error)
GetDIDExchangeController returns a DIDExchange instance.
func (*Aries) GetIntroduceController ¶
func (ar *Aries) GetIntroduceController() (api.IntroduceController, error)
GetIntroduceController returns an Introduce instance.
func (*Aries) GetIssueCredentialController ¶
func (ar *Aries) GetIssueCredentialController() (api.IssueCredentialController, error)
GetIssueCredentialController returns an IssueCredential instance.
func (*Aries) GetKMSController ¶
func (ar *Aries) GetKMSController() (api.KMSController, error)
GetKMSController returns a KMS instance.
func (*Aries) GetLDController ¶
func (ar *Aries) GetLDController() (api.LDController, error)
GetLDController returns an LD instance.
func (*Aries) GetMediatorClientController ¶
func (ar *Aries) GetMediatorClientController() (api.MediatorClient, error)
GetMediatorClientController returns a MediatorClient instance.
func (*Aries) GetMediatorController ¶
func (ar *Aries) GetMediatorController() (api.MediatorController, error)
GetMediatorController returns a Mediator instance.
func (*Aries) GetMessagingController ¶
func (ar *Aries) GetMessagingController() (api.MessagingController, error)
GetMessagingController returns a Messaging instance.
func (*Aries) GetOutOfBandController ¶
func (ar *Aries) GetOutOfBandController() (api.OutOfBandController, error)
GetOutOfBandController returns a OutOfBand instance.
func (*Aries) GetOutOfBandV2Controller ¶
func (ar *Aries) GetOutOfBandV2Controller() (api.OutOfBandV2Controller, error)
GetOutOfBandV2Controller returns a OutOfBandV2 instance.
func (*Aries) GetPresentProofController ¶
func (ar *Aries) GetPresentProofController() (api.PresentProofController, error)
GetPresentProofController returns a PresentProof instance.
func (*Aries) GetVCWalletController ¶
func (ar *Aries) GetVCWalletController() (api.VCWalletController, error)
GetVCWalletController returns a VCWalletController instance.
func (*Aries) GetVDRController ¶
func (ar *Aries) GetVDRController() (api.VDRController, error)
GetVDRController returns a VDR instance.
func (*Aries) GetVerifiableController ¶
func (ar *Aries) GetVerifiableController() (api.VerifiableController, error)
GetVerifiableController returns an Verifiable instance.
func (*Aries) RegisterHandler ¶
RegisterHandler registers a handler to process incoming notifications from the framework. Handler is implemented by mobile apps.
func (*Aries) UnregisterHandler ¶
UnregisterHandler unregisters a handler by given id.
type BlindedRouting ¶
BlindedRouting contains necessary fields to support its operations.
func (*BlindedRouting) SendDIDDocRequest ¶
func (br *BlindedRouting) SendDIDDocRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
SendDIDDocRequest sends DID doc request over a connection.
func (*BlindedRouting) SendRegisterRouteRequest ¶
func (br *BlindedRouting) SendRegisterRouteRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
SendRegisterRouteRequest sends register route request as a response to reply from send DID doc request.
type DIDClient ¶
DIDClient contains necessary fields to support its operations.
func (*DIDClient) CreateOrbDID ¶
func (dc *DIDClient) CreateOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateOrbDID creates a new Orb DID.
func (*DIDClient) CreatePeerDID ¶
func (dc *DIDClient) CreatePeerDID(request *models.RequestEnvelope) *models.ResponseEnvelope
CreatePeerDID creates a new peer DID.
func (*DIDClient) ResolveOrbDID ¶
func (dc *DIDClient) ResolveOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
ResolveOrbDID resolve Orb DID.
func (*DIDClient) ResolveWebDIDFromOrbDID ¶
func (dc *DIDClient) ResolveWebDIDFromOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
ResolveWebDIDFromOrbDID resolve Web DID from Orb DID.
func (*DIDClient) VerifyWebDIDFromOrbDID ¶
func (dc *DIDClient) VerifyWebDIDFromOrbDID(request *models.RequestEnvelope) *models.ResponseEnvelope
VerifyWebDIDFromOrbDID verify web DID from orb DID.
type DIDExchange ¶
DIDExchange contains necessary fields to support its operations.
func (*DIDExchange) AcceptExchangeRequest ¶
func (de *DIDExchange) AcceptExchangeRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptExchangeRequest accepts a stored connection request.
func (*DIDExchange) AcceptInvitation ¶
func (de *DIDExchange) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptInvitation accepts a stored connection invitation.
func (*DIDExchange) CreateConnection ¶
func (de *DIDExchange) CreateConnection(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateConnection creates a new connection record in completed state and returns the generated connectionID.
func (*DIDExchange) CreateImplicitInvitation ¶
func (de *DIDExchange) CreateImplicitInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateImplicitInvitation creates implicit invitation using inviter DID.
func (*DIDExchange) CreateInvitation ¶
func (de *DIDExchange) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateInvitation creates a new connection invitation.
func (*DIDExchange) QueryConnectionByID ¶
func (de *DIDExchange) QueryConnectionByID(request *models.RequestEnvelope) *models.ResponseEnvelope
QueryConnectionByID fetches a single connection record by connection ID.
func (*DIDExchange) QueryConnections ¶
func (de *DIDExchange) QueryConnections(request *models.RequestEnvelope) *models.ResponseEnvelope
QueryConnections queries agent to agent connections.
func (*DIDExchange) ReceiveInvitation ¶
func (de *DIDExchange) ReceiveInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
ReceiveInvitation receives a new connection invitation.
func (*DIDExchange) RemoveConnection ¶
func (de *DIDExchange) RemoveConnection(request *models.RequestEnvelope) *models.ResponseEnvelope
RemoveConnection removes given connection record.
type Incoming ¶
type Incoming struct { ID string `json:"id"` Topic string `json:"topic"` Message interface{} `json:"message"` }
Incoming represents WebSocket event message.
type Introduce ¶
Introduce contains necessary fields for each of its operations.
func (*Introduce) AcceptProblemReport ¶
func (ir *Introduce) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProblemReport is used for accepting problem report.
func (*Introduce) AcceptProposal ¶
func (ir *Introduce) AcceptProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProposal is used when introducee wants to accept a proposal without providing a OOBRequest (via HTTP).
func (*Introduce) AcceptProposalWithOOBInvitation ¶
func (ir *Introduce) AcceptProposalWithOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProposalWithOOBInvitation is used when introducee wants to provide an out-of-band request (via HTTP).
func (*Introduce) AcceptRequestWithPublicOOBInvitation ¶
func (ir *Introduce) AcceptRequestWithPublicOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptRequestWithPublicOOBInvitation is used when an introducer wants to provide a published out-of-band request (via HTTP).
func (*Introduce) AcceptRequestWithRecipients ¶
func (ir *Introduce) AcceptRequestWithRecipients(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptRequestWithRecipients is used when the introducer does not have a published out-of-band message on hand but they are willing to introduce agents to each other. This is done via HTTP.
func (*Introduce) Actions ¶
func (ir *Introduce) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
Actions returns unfinished actions for the async usage. This creates an http request based on the provided method arguments.
func (*Introduce) DeclineProposal ¶
func (ir *Introduce) DeclineProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineProposal is used to reject the proposal (via HTTP).
func (*Introduce) DeclineRequest ¶
func (ir *Introduce) DeclineRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineRequest is used to reject the request (via HTTP).
func (*Introduce) SendProposal ¶
func (ir *Introduce) SendProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
SendProposal sends a proposal to the introducees (the client has not published an out-of-band message) via HTTP.
func (*Introduce) SendProposalWithOOBInvitation ¶
func (ir *Introduce) SendProposalWithOOBInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
SendProposalWithOOBInvitation sends a proposal to the introducee (the client has published an out-of-band request) via HTTP.
func (*Introduce) SendRequest ¶
func (ir *Introduce) SendRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
SendRequest sends a request showing that the introducee is willing to share their own out-of-band message (via HTTP).
type IssueCredential ¶
IssueCredential implements the IssueCredentialController interface for all credential issuing operations.
func (*IssueCredential) AcceptCredential ¶
func (ic *IssueCredential) AcceptCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptCredential is used when the Holder is willing to accept the IssueCredential.
func (*IssueCredential) AcceptOffer ¶
func (ic *IssueCredential) AcceptOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptOffer is used when the Holder is willing to accept the offer.
func (*IssueCredential) AcceptProblemReport ¶
func (ic *IssueCredential) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProblemReport is used for accepting problem report.
func (*IssueCredential) AcceptProposal ¶
func (ic *IssueCredential) AcceptProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProposal is used when the Issuer is willing to accept the proposal.
func (*IssueCredential) AcceptRequest ¶
func (ic *IssueCredential) AcceptRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptRequest is used when the Issuer is willing to accept the request.
func (*IssueCredential) Actions ¶
func (ic *IssueCredential) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
Actions returns pending actions that have not yet to be executed or canceled.
func (*IssueCredential) DeclineCredential ¶
func (ic *IssueCredential) DeclineCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineCredential is used when the Holder does not want to accept the IssueCredential.
func (*IssueCredential) DeclineOffer ¶
func (ic *IssueCredential) DeclineOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineOffer is used when the Holder does not want to accept the offer.
func (*IssueCredential) DeclineProposal ¶
func (ic *IssueCredential) DeclineProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineProposal is used when the Issuer does not want to accept the proposal.
func (*IssueCredential) DeclineRequest ¶
func (ic *IssueCredential) DeclineRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineRequest is used when the Issuer does not want to accept the request.
func (*IssueCredential) NegotiateProposal ¶
func (ic *IssueCredential) NegotiateProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
NegotiateProposal is used when the Holder wants to negotiate about an offer he received.
func (*IssueCredential) SendOffer ¶
func (ic *IssueCredential) SendOffer(request *models.RequestEnvelope) *models.ResponseEnvelope
SendOffer is used by the Issuer to send an offer.
func (*IssueCredential) SendProposal ¶
func (ic *IssueCredential) SendProposal(request *models.RequestEnvelope) *models.ResponseEnvelope
SendProposal is used by the Holder to send a proposal.
func (*IssueCredential) SendRequest ¶
func (ic *IssueCredential) SendRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
SendRequest is used by the Holder to send a request.
type KMS ¶
KMS contains necessary fields to support its operations.
func (*KMS) CreateKeySet ¶
func (k *KMS) CreateKeySet(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateKeySet create a new public/private encryption and signature key pairs set.
func (*KMS) ImportKey ¶
func (k *KMS) ImportKey(request *models.RequestEnvelope) *models.ResponseEnvelope
ImportKey imports a key.
type LD ¶
LD contains necessary fields to support its operations.
func (*LD) AddContexts ¶
func (c *LD) AddContexts(request *models.RequestEnvelope) *models.ResponseEnvelope
AddContexts adds JSON-LD contexts to the underlying storage.
func (*LD) AddRemoteProvider ¶
func (c *LD) AddRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
AddRemoteProvider adds remote provider and JSON-LD contexts from that provider.
func (*LD) DeleteRemoteProvider ¶
func (c *LD) DeleteRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
DeleteRemoteProvider deletes remote provider and contexts from that provider.
func (*LD) GetAllRemoteProviders ¶
func (c *LD) GetAllRemoteProviders(request *models.RequestEnvelope) *models.ResponseEnvelope
GetAllRemoteProviders gets all remote providers.
func (*LD) RefreshAllRemoteProviders ¶
func (c *LD) RefreshAllRemoteProviders(request *models.RequestEnvelope) *models.ResponseEnvelope
RefreshAllRemoteProviders updates contexts from all remote providers.
func (*LD) RefreshRemoteProvider ¶
func (c *LD) RefreshRemoteProvider(request *models.RequestEnvelope) *models.ResponseEnvelope
RefreshRemoteProvider updates contexts from the remote provider.
type Mediator ¶
Mediator contains necessary fields to support its operations.
func (*Mediator) BatchPickup ¶
func (m *Mediator) BatchPickup(request *models.RequestEnvelope) *models.ResponseEnvelope
BatchPickup dispatches pending messages for given connection.
func (*Mediator) Connections ¶
func (m *Mediator) Connections(request *models.RequestEnvelope) *models.ResponseEnvelope
Connections returns router`s connections.
func (*Mediator) Reconnect ¶
func (m *Mediator) Reconnect(request *models.RequestEnvelope) *models.ResponseEnvelope
Reconnect sends noop message to given mediator connection to re-establish network connection.
func (*Mediator) ReconnectAll ¶
func (m *Mediator) ReconnectAll(request *models.RequestEnvelope) *models.ResponseEnvelope
ReconnectAll sends noop message to all mediator connections to re-establish a network connections.
func (*Mediator) Register ¶
func (m *Mediator) Register(request *models.RequestEnvelope) *models.ResponseEnvelope
Register registers the agent with the router.
func (*Mediator) Status ¶
func (m *Mediator) Status(request *models.RequestEnvelope) *models.ResponseEnvelope
Status returns details about pending messages for given connection.
func (*Mediator) Unregister ¶
func (m *Mediator) Unregister(request *models.RequestEnvelope) *models.ResponseEnvelope
Unregister unregisters the agent with the router.
type MediatorClient ¶
MediatorClient contains necessary fields to support its operations.
func (*MediatorClient) Connect ¶
func (mc *MediatorClient) Connect(request *models.RequestEnvelope) *models.ResponseEnvelope
Connect connects agent to given router endpoint.
func (*MediatorClient) CreateInvitation ¶
func (mc *MediatorClient) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateInvitation creates out-of-band invitation from one of the mediator connections.
func (*MediatorClient) SendCreateConnectionRequest ¶
func (mc *MediatorClient) SendCreateConnectionRequest(request *models.RequestEnvelope) *models.ResponseEnvelope
SendCreateConnectionRequest sends create connection request to mediator.
type Messaging ¶
Messaging contains necessary fields to support its operations.
func (*Messaging) RegisterHTTPService ¶
func (m *Messaging) RegisterHTTPService(request *models.RequestEnvelope) *models.ResponseEnvelope
RegisterHTTPService registers new http over didcomm service to message handler registrar.
func (*Messaging) RegisterService ¶
func (m *Messaging) RegisterService(request *models.RequestEnvelope) *models.ResponseEnvelope
RegisterService registers new message service to message handler registrar.
func (*Messaging) Reply ¶
func (m *Messaging) Reply(request *models.RequestEnvelope) *models.ResponseEnvelope
Reply sends reply to existing message.
func (*Messaging) Send ¶
func (m *Messaging) Send(request *models.RequestEnvelope) *models.ResponseEnvelope
Send sends a new message to destination provided.
func (*Messaging) Services ¶
func (m *Messaging) Services(request *models.RequestEnvelope) *models.ResponseEnvelope
Services returns list of registered service names.
func (*Messaging) UnregisterService ¶
func (m *Messaging) UnregisterService(request *models.RequestEnvelope) *models.ResponseEnvelope
UnregisterService unregisters given message service handler registrar.
type OutOfBand ¶
OutOfBand contains necessary fields to support its operations.
func (*OutOfBand) AcceptInvitation ¶
func (oob *OutOfBand) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptInvitation from another agent and return the ID of the new connection records.
func (*OutOfBand) ActionContinue ¶
func (oob *OutOfBand) ActionContinue(request *models.RequestEnvelope) *models.ResponseEnvelope
ActionContinue allows continuing with the protocol after an action event was triggered.
func (*OutOfBand) ActionStop ¶
func (oob *OutOfBand) ActionStop(request *models.RequestEnvelope) *models.ResponseEnvelope
ActionStop stops the protocol after an action event was triggered.
func (*OutOfBand) Actions ¶
func (oob *OutOfBand) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
Actions returns pending actions that have not yet to be executed or canceled.
func (*OutOfBand) CreateInvitation ¶
func (oob *OutOfBand) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateInvitation creates and saves an out-of-band invitation.
type OutOfBandV2 ¶
OutOfBandV2 contains necessary fields to support its operations.
func (*OutOfBandV2) AcceptInvitation ¶
func (oob *OutOfBandV2) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptInvitation from another agent and return the ID of the new connection records.
func (*OutOfBandV2) CreateInvitation ¶
func (oob *OutOfBandV2) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateInvitation creates and saves an out-of-band 2.0 invitation.
type PresentProof ¶
PresentProof contains necessary fields for each of its operations.
func (*PresentProof) AcceptPresentation ¶
func (p *PresentProof) AcceptPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptPresentation is used by the Verifier to accept a presentation.
func (*PresentProof) AcceptProblemReport ¶
func (p *PresentProof) AcceptProblemReport(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProblemReport is used for accepting problem report.
func (*PresentProof) AcceptProposePresentation ¶
func (p *PresentProof) AcceptProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptProposePresentation is used when the Verifier is willing to accept the propose presentation.
func (*PresentProof) AcceptRequestPresentation ¶
func (p *PresentProof) AcceptRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
AcceptRequestPresentation is used by the Prover is to accept a presentation request.
func (*PresentProof) Actions ¶
func (p *PresentProof) Actions(request *models.RequestEnvelope) *models.ResponseEnvelope
Actions returns pending actions that have not yet to be executed or canceled.
func (*PresentProof) DeclinePresentation ¶
func (p *PresentProof) DeclinePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclinePresentation is used by the Verifier to decline a presentation.
func (*PresentProof) DeclineProposePresentation ¶
func (p *PresentProof) DeclineProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineProposePresentation is used when the Verifier does not want to accept the propose presentation.
func (*PresentProof) DeclineRequestPresentation ¶
func (p *PresentProof) DeclineRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
DeclineRequestPresentation is used when the Prover does not want to accept the request presentation.
func (*PresentProof) NegotiateRequestPresentation ¶
func (p *PresentProof) NegotiateRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
NegotiateRequestPresentation is used by the Prover to counter a presentation request they received with a proposal.
func (*PresentProof) SendProposePresentation ¶
func (p *PresentProof) SendProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
SendProposePresentation is used by the Prover to send a propose presentation.
func (*PresentProof) SendRequestPresentation ¶
func (p *PresentProof) SendRequestPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
SendRequestPresentation is used by the Verifier to send a request presentation.
type VCWallet ¶
VCWallet contains necessary fields to support its operations.
func (*VCWallet) Add ¶
func (wallet *VCWallet) Add(request *models.RequestEnvelope) *models.ResponseEnvelope
Add adds given data model to wallet content store.
func (*VCWallet) Close ¶
func (wallet *VCWallet) Close(request *models.RequestEnvelope) *models.ResponseEnvelope
Close locks given user's wallet.
func (*VCWallet) Connect ¶
func (wallet *VCWallet) Connect(request *models.RequestEnvelope) *models.ResponseEnvelope
Connect accepts out-of-band invitations and performs DID exchange.
func (*VCWallet) CreateKeyPair ¶
func (wallet *VCWallet) CreateKeyPair(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateKeyPair creates key pair from wallet.
func (*VCWallet) CreateProfile ¶
func (wallet *VCWallet) CreateProfile(request *models.RequestEnvelope) *models.ResponseEnvelope
CreateProfile creates new wallet profile for given user.
func (*VCWallet) Derive ¶
func (wallet *VCWallet) Derive(request *models.RequestEnvelope) *models.ResponseEnvelope
Derive derives a credential from wallet.
func (*VCWallet) Get ¶
func (wallet *VCWallet) Get(request *models.RequestEnvelope) *models.ResponseEnvelope
Get returns wallet content by ID from wallet content store.
func (*VCWallet) GetAll ¶
func (wallet *VCWallet) GetAll(request *models.RequestEnvelope) *models.ResponseEnvelope
GetAll gets all wallet content from wallet content store for given type.
func (*VCWallet) Issue ¶
func (wallet *VCWallet) Issue(request *models.RequestEnvelope) *models.ResponseEnvelope
Issue adds proof to a Verifiable Credential from wallet.
func (*VCWallet) Open ¶
func (wallet *VCWallet) Open(request *models.RequestEnvelope) *models.ResponseEnvelope
Open unlocks given user's wallet and returns a token for subsequent use of wallet features.
func (*VCWallet) PresentProof ¶
func (wallet *VCWallet) PresentProof(request *models.RequestEnvelope) *models.ResponseEnvelope
PresentProof sends message present proof message from wallet to relying party.
func (*VCWallet) ProfileExists ¶
func (wallet *VCWallet) ProfileExists(request *models.RequestEnvelope) *models.ResponseEnvelope
ProfileExists checks if profile exists for given wallet user, returns error if not found.
func (*VCWallet) ProposePresentation ¶
func (wallet *VCWallet) ProposePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
ProposePresentation accepts out-of-band invitation and sends message proposing presentation from wallet to relying party.
func (*VCWallet) Prove ¶
func (wallet *VCWallet) Prove(request *models.RequestEnvelope) *models.ResponseEnvelope
Prove produces a Verifiable Presentation from wallet.
func (*VCWallet) Query ¶
func (wallet *VCWallet) Query(request *models.RequestEnvelope) *models.ResponseEnvelope
Query runs credential queries against wallet credential contents.
func (*VCWallet) Remove ¶
func (wallet *VCWallet) Remove(request *models.RequestEnvelope) *models.ResponseEnvelope
Remove deletes given content from wallet content store.
func (*VCWallet) UpdateProfile ¶
func (wallet *VCWallet) UpdateProfile(request *models.RequestEnvelope) *models.ResponseEnvelope
UpdateProfile updates an existing wallet profile for given user.
func (*VCWallet) Verify ¶
func (wallet *VCWallet) Verify(request *models.RequestEnvelope) *models.ResponseEnvelope
Verify verifies credential/presentation from wallet.
type VDR ¶
VDR contains necessary fields to support its operations.
func (*VDR) GetDID ¶
func (v *VDR) GetDID(request *models.RequestEnvelope) *models.ResponseEnvelope
GetDID retrieves the did from the store.
func (*VDR) GetDIDRecords ¶
func (v *VDR) GetDIDRecords(request *models.RequestEnvelope) *models.ResponseEnvelope
GetDIDRecords retrieves the did doc containing name and didID.
func (*VDR) ResolveDID ¶
func (v *VDR) ResolveDID(request *models.RequestEnvelope) *models.ResponseEnvelope
ResolveDID resolve did.
func (*VDR) SaveDID ¶
func (v *VDR) SaveDID(request *models.RequestEnvelope) *models.ResponseEnvelope
SaveDID saves the did doc to the store.
type Verifiable ¶
Verifiable contains necessary fields for each of its operations.
func (*Verifiable) GeneratePresentation ¶
func (vr *Verifiable) GeneratePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
GeneratePresentation generates verifiable presentation from a verifiable credential.
func (*Verifiable) GeneratePresentationByID ¶
func (vr *Verifiable) GeneratePresentationByID(request *models.RequestEnvelope) *models.ResponseEnvelope
GeneratePresentationByID generates verifiable presentation from a stored verifiable credential.
func (*Verifiable) GetCredential ¶
func (vr *Verifiable) GetCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
GetCredential retrieves the verifiable credential from the store.
func (*Verifiable) GetCredentialByName ¶
func (vr *Verifiable) GetCredentialByName(request *models.RequestEnvelope) *models.ResponseEnvelope
GetCredentialByName retrieves the verifiable credential by name from the store.
func (*Verifiable) GetCredentials ¶
func (vr *Verifiable) GetCredentials(request *models.RequestEnvelope) *models.ResponseEnvelope
GetCredentials retrieves the verifiable credential records containing name and fields of interest.
func (*Verifiable) GetPresentation ¶
func (vr *Verifiable) GetPresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
GetPresentation retrieves the verifiable presentation from the store.
func (*Verifiable) GetPresentations ¶
func (vr *Verifiable) GetPresentations(request *models.RequestEnvelope) *models.ResponseEnvelope
GetPresentations retrieves the verifiable presentation records containing name and fields of interest.
func (*Verifiable) RemoveCredentialByName ¶
func (vr *Verifiable) RemoveCredentialByName(request *models.RequestEnvelope) *models.ResponseEnvelope
RemoveCredentialByName will remove a VC that matches the specified name from the verifiable store.
func (*Verifiable) RemovePresentationByName ¶
func (vr *Verifiable) RemovePresentationByName(request *models.RequestEnvelope) *models.ResponseEnvelope
RemovePresentationByName will remove a VP that matches the specified name from the verifiable store.
func (*Verifiable) SaveCredential ¶
func (vr *Verifiable) SaveCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
SaveCredential saves the verifiable credential to the store.
func (*Verifiable) SavePresentation ¶
func (vr *Verifiable) SavePresentation(request *models.RequestEnvelope) *models.ResponseEnvelope
SavePresentation saves the presentation to the store.
func (*Verifiable) SignCredential ¶
func (vr *Verifiable) SignCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
SignCredential adds proof to given verifiable credential.
func (*Verifiable) ValidateCredential ¶
func (vr *Verifiable) ValidateCredential(request *models.RequestEnvelope) *models.ResponseEnvelope
ValidateCredential validates the verifiable credential.