pairwise

package
v0.25.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callee

type Callee struct {
	Pairwise
	Caller *ssi.DID
	Callee *ssi.DID
}

func NewCalleePairwise

func NewCalleePairwise(msgFactor didcomm.MsgFactor, agent ssi.Agent,
	msg didcomm.PwMsg) (p *Callee)

func (*Callee) CheckPreallocation added in v0.25.9

func (p *Callee) CheckPreallocation(cnxAddr *endp.Addr)

func (*Callee) ConnReqToRespWithSet

func (p *Callee) ConnReqToRespWithSet(
	f func(m didcomm.PwMsg),
) (
	respMsg didcomm.PwMsg,
	err error,
)

func (*Callee) MeDID

func (p *Callee) MeDID() string

func (*Callee) RespMsgAndOurDID

func (p *Callee) RespMsgAndOurDID() (msg didcomm.PwMsg)

func (*Callee) SaveEndpoint

func (p *Callee) SaveEndpoint(addr string)

func (*Callee) StartStore

func (p *Callee) StartStore()

func (*Callee) StoreResult

func (p *Callee) StoreResult() error

func (*Callee) YouDID

func (p *Callee) YouDID() string

type Caller

type Caller struct {
	Pairwise
	// contains filtered or unexported fields
}

func NewCallerPairwise

func NewCallerPairwise(msgFactor didcomm.MsgFactor, callerAgent ssi.Agent,
	callerRootDid *ssi.DID, connType string) (p *Caller)

func (*Caller) MeDID

func (p *Caller) MeDID() string

func (*Caller) SaveEndpoint

func (p *Caller) SaveEndpoint(addr string)

func (*Caller) StartStore

func (p *Caller) StartStore()

func (*Caller) StoreResult

func (p *Caller) StoreResult() error

func (*Caller) YouDID

func (p *Caller) YouDID() string

type Pairwise

type Pairwise struct {
	Msg  didcomm.PwMsg // payload's inner message which will build by multiple functions
	Endp string        // name of the endpoint
	Name string        // name of the pairwise, used when stored to wallet
	// contains filtered or unexported fields
}

type Saver

type Saver interface {
	StartStore()
	StoreResult() error
	SaveEndpoint(addr string)
	MeDID() string
	YouDID() string
}

Jump to

Keyboard shortcuts

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