didexchange

package
v0.0.0-...-64dd8ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerSteps

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

ControllerSteps is steps for didexchange with controller.

func NewDIDExchangeControllerSteps

func NewDIDExchangeControllerSteps() *ControllerSteps

NewDIDExchangeControllerSteps creates steps for didexchange with controller.

func (*ControllerSteps) ApproveRequest

func (a *ControllerSteps) ApproveRequest(agentID string) error

ApproveRequest approves a request.

func (*ControllerSteps) ApproveRequestWithRouter

func (a *ControllerSteps) ApproveRequestWithRouter(agentID, router string) error

ApproveRequestWithRouter approves a request.

func (*ControllerSteps) ConnectionIDs

func (a *ControllerSteps) ConnectionIDs() map[string]string

ConnectionIDs gets connection IDs.

func (*ControllerSteps) CreatePublicDID

func (a *ControllerSteps) CreatePublicDID(agentID, _ string) error

CreatePublicDID step creates a public sidetree DID for the given agent. Second parameter is ignored.

func (*ControllerSteps) CreatePublicDIDWithKeyType

func (a *ControllerSteps) CreatePublicDIDWithKeyType(
	agentID, keyType, encKeyType string) (string, error)

CreatePublicDIDWithKeyType creates a public sidetree DID with the given key type, returning the DID.

func (*ControllerSteps) EstablishConnection

func (a *ControllerSteps) EstablishConnection(inviter, invitee string) error

EstablishConnection establishes connection between two agents through did exchange protocol.

func (*ControllerSteps) RegisterSteps

func (a *ControllerSteps) RegisterSteps(s *godog.Suite)

RegisterSteps registers agent steps.

func (*ControllerSteps) SetContext

func (a *ControllerSteps) SetContext(ctx *context.BDDContext)

SetContext is called before every scenario is run with a fresh new context.

func (*ControllerSteps) WaitForPostEvent

func (a *ControllerSteps) WaitForPostEvent(agents, statesValue string) error

WaitForPostEvent waits for the specific post event state.

type SDKSteps

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

SDKSteps is steps for didexchange using client SDK.

func NewDIDExchangeSDKSteps

func NewDIDExchangeSDKSteps() *SDKSteps

NewDIDExchangeSDKSteps return new steps for didexchange using client SDK.

func (*SDKSteps) ApproveRequest

func (d *SDKSteps) ApproveRequest(agentID string) error

ApproveRequest approves request.

func (*SDKSteps) ApproveRequestWithRouter

func (d *SDKSteps) ApproveRequestWithRouter(agentID, router string) error

ApproveRequestWithRouter approves request.

func (*SDKSteps) CreateDIDExchangeClient

func (d *SDKSteps) CreateDIDExchangeClient(agents string) error

CreateDIDExchangeClient creates DIDExchangeClient.

func (*SDKSteps) CreateInvitation

func (d *SDKSteps) CreateInvitation(inviterAgentID, connection, keyType string) error

CreateInvitation creates an invitation.

func (*SDKSteps) CreateInvitationWithDID

func (d *SDKSteps) CreateInvitationWithDID(inviterAgentID string) error

CreateInvitationWithDID creates invitation with DID.

func (*SDKSteps) ReceiveInvitation

func (d *SDKSteps) ReceiveInvitation(inviteeAgentID, inviterAgentID string) error

ReceiveInvitation receives invitation.

func (*SDKSteps) RegisterPostMsgEvent

func (d *SDKSteps) RegisterPostMsgEvent(agents, statesValue string) error

RegisterPostMsgEvent registers PostMsgEvent.

func (*SDKSteps) RegisterSteps

func (d *SDKSteps) RegisterSteps(s *godog.Suite)

RegisterSteps registers did exchange steps.

func (*SDKSteps) SetContext

func (d *SDKSteps) SetContext(ctx *context.BDDContext)

SetContext is called before every scenario is run with a fresh new context.

func (*SDKSteps) ValidateConnection

func (d *SDKSteps) ValidateConnection(agents, stateValue string) error

ValidateConnection checks the agents connection status against the given value.

func (*SDKSteps) WaitForPostEvent

func (d *SDKSteps) WaitForPostEvent(agents, statesValue string) error

WaitForPostEvent waits for post event.

func (*SDKSteps) WaitForPublicDID

func (d *SDKSteps) WaitForPublicDID(agents string, maxSeconds int) error

WaitForPublicDID waits for public DID.

Jump to

Keyboard shortcuts

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