Documentation ¶
Index ¶
- func GetDIDExStateCompResp(controllerURL, msgSvcName string) error
- func PullMsgFromWebhookURL(webhookURL, topic string, match func(message WebhookMessage) bool) (*service.DIDCommMsgMap, map[string]interface{}, error)
- func RegisterMsgService(controllerURL, msgSvcName, msgType string) error
- func UnregisterAllMsgServices(controllerURL string) error
- type Steps
- func (a *Steps) AcceptOOBInvitation(agentID string, invitation *outofband.Invitation, label string) (string, error)
- func (a *Steps) AcceptOOBInvitationV2(agentID string, invitation *outofbandv2.Invitation, label string) (string, error)
- func (a *Steps) AcceptRequestPresentation(agent string, presentation *verifiable.Presentation) error
- func (a *Steps) BlindedRouting(agentID, connID, routerURL string) error
- func (a *Steps) Connect(inviter, invitee string) error
- func (a *Steps) ConnectToWalletBridge(userID, walletID string) error
- func (a *Steps) CreateConnection(agent, myDID, label string, theirDID *did.Doc) (string, error)
- func (a *Steps) CreateKey(agent string, t kms.KeyType) (id string, key []byte, err error)
- func (a *Steps) GeneratePresentation(agent, signingDID, verificationMethod string, vp *verifiable.Presentation, ...) (*verifiable.Presentation, error)
- func (a *Steps) GetAuthZDIDDoc(agent, connID string) (*did.Doc, error)
- func (a *Steps) GetConnectionBetweenAgents(agentA, agentB string) (*didexchange.Connection, error)
- func (a *Steps) RegisterCHAPIMsgHandler(agentID string) error
- func (a *Steps) RegisterSteps(s *godog.Suite)
- func (a *Steps) ResolveDID(agent, didID string) (*did.Doc, error)
- func (a *Steps) SaveDID(agent, friendlyName string, d *did.Doc) error
- func (a *Steps) SignCredential(agent, signingDID string, cred *verifiable.Credential) (*verifiable.Credential, error)
- func (a *Steps) SubmitWACIPresentation(walletID, connID string) error
- func (a *Steps) ValidateAgentConnection(agentID, inboundHost, inboundPort, controllerURL string) error
- func (a *Steps) ValidateAgentConnectionWithWebhook(agentID, inboundHost, inboundPort, webhookURL, controllerURL string) error
- func (a *Steps) ValidateConnection(agentID, connID string) (*didexchange.Connection, error)
- type WebhookIncoming
- type WebhookMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDIDExStateCompResp ¶
GetDIDExStateCompResp get didex state complete message.
func PullMsgFromWebhookURL ¶
func PullMsgFromWebhookURL(webhookURL, topic string, match func(message WebhookMessage) bool) (*service.DIDCommMsgMap, map[string]interface{}, error)
PullMsgFromWebhookURL pulls incoming message from webhook URL.
func RegisterMsgService ¶
RegisterMsgService registers a new message services.
func UnregisterAllMsgServices ¶
UnregisterAllMsgServices unregisters all the message services.
Types ¶
type Steps ¶
type Steps struct { ControllerURLs map[string]string WebhookURLs map[string]string // contains filtered or unexported fields }
Steps contains steps for aries agent.
func (*Steps) AcceptOOBInvitation ¶
func (a *Steps) AcceptOOBInvitation(agentID string, invitation *outofband.Invitation, label string) (string, error)
AcceptOOBInvitation makes agentID accept the invitation, returning the connection ID.
func (*Steps) AcceptOOBInvitationV2 ¶
func (a *Steps) AcceptOOBInvitationV2(agentID string, invitation *outofbandv2.Invitation, label string, ) (string, error)
AcceptOOBInvitationV2 makes agentID accept the oob v2 invitation, returning the connection ID.
func (*Steps) AcceptRequestPresentation ¶
func (a *Steps) AcceptRequestPresentation(agent string, presentation *verifiable.Presentation) error
AcceptRequestPresentation accepts the request for presentation.
func (*Steps) BlindedRouting ¶
BlindedRouting agent(wallet) registers the other agent(adapter) with the router
func (*Steps) ConnectToWalletBridge ¶
ConnectToWalletBridge connects to remote wallet by resolving invitation from deeplink
func (*Steps) CreateConnection ¶
CreateConnection creates a didcomm connection for the agent between myDID and theirDID.
func (*Steps) CreateKey ¶
CreateKey creates a key of the given type. Returns the key's ID and the public key material.
func (*Steps) GeneratePresentation ¶
func (a *Steps) GeneratePresentation(agent, signingDID, verificationMethod string, vp *verifiable.Presentation, vcs ...*verifiable.Credential) (*verifiable.Presentation, error)
GeneratePresentation generates a new, signed presentation.
func (*Steps) GetAuthZDIDDoc ¶
GetAuthZDIDDoc returns the DID Doc.
func (*Steps) GetConnectionBetweenAgents ¶
func (a *Steps) GetConnectionBetweenAgents(agentA, agentB string) (*didexchange.Connection, error)
GetConnectionBetweenAgents returns a didcomm connection record between the two agents, if one exists.
func (*Steps) RegisterCHAPIMsgHandler ¶
RegisterCHAPIMsgHandler registers CHAPI request message handler in remote wallet
func (*Steps) RegisterSteps ¶
RegisterSteps registers agent steps. nolint: lll
func (*Steps) ResolveDID ¶
ResolveDID resolves the did on behalf of the agent.
func (*Steps) SignCredential ¶
func (a *Steps) SignCredential(agent, signingDID string, cred *verifiable.Credential) (*verifiable.Credential, error)
SignCredential signs the credential.
func (*Steps) SubmitWACIPresentation ¶
SubmitWACIPresentation submits presentation through WACI flow.
func (*Steps) ValidateAgentConnection ¶
func (a *Steps) ValidateAgentConnection(agentID, inboundHost, inboundPort, controllerURL string) error
ValidateAgentConnection checks if the controller agent is running.
func (*Steps) ValidateAgentConnectionWithWebhook ¶
func (a *Steps) ValidateAgentConnectionWithWebhook(agentID, inboundHost, inboundPort, webhookURL, controllerURL string) error
ValidateAgentConnectionWithWebhook checks if the controller agent is running along with webhook.
func (*Steps) ValidateConnection ¶
func (a *Steps) ValidateConnection(agentID, connID string) (*didexchange.Connection, error)
ValidateConnection retrieves the agent's connection record and tests whether its state is completed.
type WebhookIncoming ¶
type WebhookIncoming struct { ID string `json:"id"` Topic string `json:"topic"` WebhookMsg WebhookMessage `json:"message"` }
WebhookIncoming is incoming message model from webhook notifier.
type WebhookMessage ¶
type WebhookMessage struct { ProtocolName string Message *service.DIDCommMsgMap StateID string Properties map[string]interface{} Type string }
WebhookMessage model to hold webhook message model.