v0

package
v0.30.56 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

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 AFGOConnection struct {
	DID string   `json:"DID,omitempty"`
	Doc *did.Doc `json:"DIDDoc,omitempty"`
}

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 DataConnection struct {
	DID string   `json:"DID,omitempty"`
	Doc *sov.Doc `json:"DIDDoc,omitempty"`
}

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

Jump to

Keyboard shortcuts

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