connection

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a connection management SDK client.

func New

func New(prov provider) (*Client, error)

New creates connection Client.

func (*Client) CreateConnectionV2

func (c *Client) CreateConnectionV2(myDID, theirDID string, opts ...CreateConnectionOption) (string, error)

CreateConnectionV2 creates a DIDComm V2 connection with the given DID.

func (*Client) RotateDID

func (c *Client) RotateDID(connectionID, signingKID string, opts ...RotateDIDOption) (string, error)

RotateDID rotates the DID of the given connection to the given new DID, using the signing KID for the key in the old DID doc to sign the DID rotation.

func (*Client) SetConnectionToDIDCommV2

func (c *Client) SetConnectionToDIDCommV2(connID string) error

SetConnectionToDIDCommV2 sets that a connection is using didcomm v2, and associated versions of protocols.

type CreateConnectionOption

type CreateConnectionOption func(record *connection.Record)

CreateConnectionOption options for Client.CreateConnectionV2.

func WithTheirLabel

func WithTheirLabel(l string) CreateConnectionOption

WithTheirLabel option.

type RotateDIDOption

type RotateDIDOption func(opts *rotateDIDOpts)

RotateDIDOption options for Client.RotateDID.

func ByCreatingPeerDID

func ByCreatingPeerDID() RotateDIDOption

ByCreatingPeerDID option for rotating a DID to a peer DID, by creating a fresh peer DID.

func WithNewDID

func WithNewDID(newDID string) RotateDIDOption

WithNewDID option for rotating a DID, with the given DID for the new DID.

Jump to

Keyboard shortcuts

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