async

package
v0.2.29 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pairwise

type Pairwise struct {
	client.Pairwise
	// contains filtered or unexported fields
}

func NewPairwise

func NewPairwise(conn client.Conn, ID string, cOpts ...grpc.CallOption) *Pairwise

func (Pairwise) BasicMessage

func (pw Pairwise) BasicMessage(ctx context.Context, content string) (pid *agency.ProtocolID, err error)

func (*Pairwise) Connection

func (pw *Pairwise) Connection(ctx context.Context, invitationStr string) (pid *agency.ProtocolID, err error)

Connection is a helper wrapper to start a connection protocol in the agency. The invitationStr accepts both JSON and URL formated invitations. The agency does the same.

func (Pairwise) Issue

func (pw Pairwise) Issue(ctx context.Context, credDefID, attrsJSON string) (pid *agency.ProtocolID, err error)

func (Pairwise) IssueWithAttrs

func (pw Pairwise) IssueWithAttrs(
	ctx context.Context,
	credDefID string,
	attrs *agency.Protocol_IssuingAttributes,
) (
	pid *agency.ProtocolID,
	err error,
)

func (Pairwise) ProposeIssue added in v0.1.17

func (pw Pairwise) ProposeIssue(ctx context.Context, credDefID, attrsJSON string) (pid *agency.ProtocolID, err error)

func (Pairwise) ProposeIssueWithAttrs added in v0.1.17

func (pw Pairwise) ProposeIssueWithAttrs(
	ctx context.Context,
	credDefID string,
	attrs *agency.Protocol_IssuingAttributes,
) (
	pid *agency.ProtocolID,
	err error,
)

func (Pairwise) ProposeProof added in v0.1.17

func (pw Pairwise) ProposeProof(ctx context.Context, proofAttrs string) (pid *agency.ProtocolID, err error)

func (Pairwise) ProposeProofWithAttrs added in v0.1.17

func (pw Pairwise) ProposeProofWithAttrs(ctx context.Context, proofAttrs *agency.Protocol_Proof) (pid *agency.ProtocolID, err error)

func (Pairwise) ReqProof

func (pw Pairwise) ReqProof(ctx context.Context, proofAttrs string) (pid *agency.ProtocolID, err error)

func (Pairwise) ReqProofWithAttrs

func (pw Pairwise) ReqProofWithAttrs(ctx context.Context, proofAttrs *agency.Protocol_Proof) (pid *agency.ProtocolID, err error)

func (*Pairwise) Resume

func (pw *Pairwise) Resume(
	ctx context.Context,
	id string,
	protocol agency.Protocol_Type,
	protocolState agency.ProtocolState_State,
) (
	pid *agency.ProtocolID, err error,
)

Jump to

Keyboard shortcuts

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