Documentation ¶
Overview ¶
Package didexchange is currently used for connection protocol implementation
Index ¶
- Variables
- type Connection
- type ConnectionSignature
- type Factor
- type Request
- type RequestImpl
- func (m *RequestImpl) Did() string
- func (m *RequestImpl) Endpoint() service.Addr
- func (m *RequestImpl) FieldObj() interface{}
- func (m *RequestImpl) ID() string
- func (m *RequestImpl) JSON() []byte
- func (m *RequestImpl) Name() string
- func (m *RequestImpl) Nonce() string
- func (m *RequestImpl) SetEndpoint(ae service.Addr)
- func (m *RequestImpl) SetID(id string)
- func (m *RequestImpl) SetType(t string)
- func (m *RequestImpl) Thread() *decorator.Thread
- func (m *RequestImpl) Type() string
- func (m *RequestImpl) VerKey() string
- type Response
- type ResponseFactor
- func (f *ResponseFactor) Create(init didcomm.MsgInit) didcomm.MessageHdr
- func (f *ResponseFactor) NewAnonDecryptedMsg(wallet int, cryptStr string, did *ssi.DID) didcomm.Msg
- func (f *ResponseFactor) NewMessage(data []byte) didcomm.MessageHdr
- func (f *ResponseFactor) NewMsg(init didcomm.MsgInit) didcomm.MessageHdr
- type ResponseImpl
- func (m *ResponseImpl) Did() string
- func (m *ResponseImpl) FieldObj() interface{}
- func (m *ResponseImpl) ID() string
- func (m *ResponseImpl) JSON() []byte
- func (m *ResponseImpl) Name() string
- func (m *ResponseImpl) Nonce() string
- func (m *ResponseImpl) SetID(id string)
- func (m *ResponseImpl) SetType(t string)
- func (m *ResponseImpl) Thread() *decorator.Thread
- func (m *ResponseImpl) Type() string
- func (m *ResponseImpl) VerKey() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Creator = &Factor{}
View Source
var ResponseCreator = &ResponseFactor{}
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { DID string `json:"DID,omitempty"` DIDDoc *did.Doc `json:"DIDDoc,omitempty"` // todo: was did_doc }
Connection connection
type ConnectionSignature ¶
type ConnectionSignature struct { Type string `json:"@type,omitempty"` Signature string `json:"signature,omitempty"` SignedData string `json:"sig_data,omitempty"` SignVerKey string `json:"signer,omitempty"` // Todo: was signers }
ConnectionSignature connection signature
type Factor ¶
type Factor struct{}
func (*Factor) NewMessage ¶
func (f *Factor) NewMessage(data []byte) didcomm.MessageHdr
type Request ¶
type Request struct { Type string `json:"@type,omitempty"` ID string `json:"@id,omitempty"` Label string `json:"label,omitempty"` Connection *Connection `json:"connection,omitempty"` Thread *decorator.Thread `json:"~thread,omitempty"` }
Request defines a2a DID exchange request https://github.com/hyperledger/aries-rfcs/tree/master/features/0023-did-exchange#1-exchange-request
type RequestImpl ¶
type RequestImpl struct {
*Request
}
func NewMsg ¶
func NewMsg(data []byte) *RequestImpl
func NewRequest ¶
func NewRequest(r *Request) *RequestImpl
func (*RequestImpl) Did ¶
func (m *RequestImpl) Did() string
func (*RequestImpl) Endpoint ¶
func (m *RequestImpl) Endpoint() service.Addr
func (*RequestImpl) FieldObj ¶
func (m *RequestImpl) FieldObj() interface{}
func (*RequestImpl) ID ¶
func (m *RequestImpl) ID() string
func (*RequestImpl) JSON ¶
func (m *RequestImpl) JSON() []byte
func (*RequestImpl) Name ¶
func (m *RequestImpl) Name() string
func (*RequestImpl) Nonce ¶
func (m *RequestImpl) Nonce() string
func (*RequestImpl) SetEndpoint ¶
func (m *RequestImpl) SetEndpoint(ae service.Addr)
func (*RequestImpl) SetID ¶
func (m *RequestImpl) SetID(id string)
func (*RequestImpl) SetType ¶
func (m *RequestImpl) SetType(t string)
func (*RequestImpl) Thread ¶
func (m *RequestImpl) Thread() *decorator.Thread
func (*RequestImpl) Type ¶
func (m *RequestImpl) Type() string
func (*RequestImpl) VerKey ¶
func (m *RequestImpl) VerKey() string
type Response ¶
type Response struct { Type string `json:"@type,omitempty"` ID string `json:"@id,omitempty"` ConnectionSignature *ConnectionSignature `json:"connection~sig,omitempty"` Thread *decorator.Thread `json:"~thread,omitempty"` // contains filtered or unexported fields }
Response defines a2a DID exchange response https://github.com/hyperledger/aries-rfcs/tree/master/features/0023-did-exchange#2-exchange-response
func (*Response) SetEndpoint ¶
type ResponseFactor ¶
type ResponseFactor struct{}
func (*ResponseFactor) Create ¶
func (f *ResponseFactor) Create(init didcomm.MsgInit) didcomm.MessageHdr
func (*ResponseFactor) NewAnonDecryptedMsg ¶
func (*ResponseFactor) NewMessage ¶
func (f *ResponseFactor) NewMessage(data []byte) didcomm.MessageHdr
func (*ResponseFactor) NewMsg ¶
func (f *ResponseFactor) NewMsg(init didcomm.MsgInit) didcomm.MessageHdr
type ResponseImpl ¶
type ResponseImpl struct {
*Response
}
func NewResponse ¶
func NewResponse(r *Response) *ResponseImpl
func NewResponseMsg ¶
func NewResponseMsg(data []byte) *ResponseImpl
func (*ResponseImpl) Did ¶
func (m *ResponseImpl) Did() string
func (*ResponseImpl) FieldObj ¶
func (m *ResponseImpl) FieldObj() interface{}
func (*ResponseImpl) ID ¶
func (m *ResponseImpl) ID() string
func (*ResponseImpl) JSON ¶
func (m *ResponseImpl) JSON() []byte
func (*ResponseImpl) Name ¶
func (m *ResponseImpl) Name() string
func (*ResponseImpl) Nonce ¶
func (m *ResponseImpl) Nonce() string
func (*ResponseImpl) SetID ¶
func (m *ResponseImpl) SetID(id string)
func (*ResponseImpl) SetType ¶
func (m *ResponseImpl) SetType(t string)
func (*ResponseImpl) Thread ¶
func (m *ResponseImpl) Thread() *decorator.Thread
func (*ResponseImpl) Type ¶
func (m *ResponseImpl) Type() string
func (*ResponseImpl) VerKey ¶
func (m *ResponseImpl) VerKey() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package invitation is for invitation data model.
|
Package invitation is for invitation data model. |
Click to show internal directories.
Click to hide internal directories.