Documentation ¶
Overview ¶
Package didexchange is currently used for connection protocol implementation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AFGOConnection ¶
type Connection ¶
type Connection struct { DID string DIDDoc core.DIDDoc // handles both types of DIDDoc: sov and AFGO }
Connection is a connection definition
func (*Connection) MarshalJSON ¶
func (c *Connection) MarshalJSON() (_ []byte, err error)
func (*Connection) UnmarshalJSON ¶
func (c *Connection) UnmarshalJSON(b []byte) (err error)
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 DataConnection ¶
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 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"` Connection *Connection `json:"-"` // Actual data, to be signed or verified }
Response defines a2a DID exchange response https://github.com/hyperledger/aries-rfcs/tree/master/features/0023-did-exchange#2-exchange-response
Click to show internal directories.
Click to hide internal directories.