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 (*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 ¶
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.
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.