ssi

package
v0.0.0-...-88a98bb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosmosRegistry

type CosmosRegistry struct{}

CosmosRegistry vdr registry.

func (*CosmosRegistry) Close

func (r *CosmosRegistry) Close() error

func (*CosmosRegistry) Create

func (r *CosmosRegistry) Create(method string, did *did.Doc, opts ...vdr.DIDMethodOption) (*did.DocResolution, error)

func (*CosmosRegistry) Deactivate

func (r *CosmosRegistry) Deactivate(did string, opts ...vdr.DIDMethodOption) error

func (*CosmosRegistry) Resolve

func (r *CosmosRegistry) Resolve(did string, opts ...vdr.DIDMethodOption) (*did.DocResolution, error)

func (*CosmosRegistry) Update

func (r *CosmosRegistry) Update(did *did.Doc, opts ...vdr.DIDMethodOption) error

type CosmosVDR

type CosmosVDR struct {
}

CosmosVDR verifiable data registry

func (CosmosVDR) Accept

func (vdr CosmosVDR) Accept(method string) bool

func (CosmosVDR) Close

func (vdr CosmosVDR) Close() error

func (CosmosVDR) Create

func (vdr CosmosVDR) Create(did *did.Doc, opts ...vdr.DIDMethodOption) (*did.DocResolution, error)

func (CosmosVDR) Deactivate

func (vdr CosmosVDR) Deactivate(did string, opts ...vdr.DIDMethodOption) error

func (CosmosVDR) Read

func (vdr CosmosVDR) Read(did string, opts ...vdr.DIDMethodOption) (*did.DocResolution, error)

func (CosmosVDR) Update

func (vdr CosmosVDR) Update(did *did.Doc, opts ...vdr.DIDMethodOption) error

type LocalNotifier

type LocalNotifier struct {
	RuntimeMsgs      *config.MsgHub
	ConnectionLookup *connection.Lookup
}

LocalNotifier handles message events

func NewNotifier

func NewNotifier(ctx *context.Provider, RuntimeMsgs *config.MsgHub) *LocalNotifier

NewNotifier return notifier instance.

func (LocalNotifier) Notify

func (n LocalNotifier) Notify(topic string, message []byte) error

Notify handlers all incoming message events.

type SSIWallet

type SSIWallet struct {
	ControllerDID  string
	ControllerName string
	MediatorDID    string
	// contains filtered or unexported fields
}

SSIWallet is the wallet

func Agent

func Agent(cfg config.EdgeConfigSchema, pass string) *SSIWallet

func (*SSIWallet) AddMediator

func (s *SSIWallet) AddMediator(
	connectionID string,
)

func (*SSIWallet) Close

func (s *SSIWallet) Close()

func (SSIWallet) GetContext

func (s SSIWallet) GetContext() *context.Provider

func (SSIWallet) GetMessagingClient

func (s SSIWallet) GetMessagingClient() *messaging.Client

func (*SSIWallet) HandleInvitation

func (s *SSIWallet) HandleInvitation(
	invitation *didexchange.Invitation,
) (connection *didexchange.Connection)

func (*SSIWallet) Run

func (s *SSIWallet) Run(hub *config.MsgHub)

Run should be called as a goroutine, the parameters are: State: the local state of the app that should be stored on disk Hub: is the messages where the 3 components (ui, wallet, agent) can exchange messages

Jump to

Keyboard shortcuts

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