api

package
v0.31.68 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentStorage

type AgentStorage interface {
	Open() error
	Close() error

	KMS() kms.KeyManager

	DIDStorage() DIDStorage
	ConnectionStorage() ConnectionStorage
	CredentialStorage() CredentialStorage

	OurPackager() Packager

	OpenStore(name string) (storage.Store, error)
	SetStoreConfig(name string, config storage.StoreConfiguration) error
	GetStoreConfig(name string) (storage.StoreConfiguration, error)
	GetOpenStores() []storage.Store
}

type AgentStorageConfig

type AgentStorageConfig struct {
	AgentKey string
	AgentID  string
	FilePath string
}

type Connection

type Connection struct {
	ID            string
	MyDID         string
	TheirDID      string
	TheirEndpoint string
	TheirRoute    []string
}

type ConnectionStorage

type ConnectionStorage interface {
	SaveConnection(conn Connection) error
	GetConnection(id string) (*Connection, error)
	ListConnections() ([]Connection, error)
}

type CredentialStorage

type CredentialStorage interface {
}

type DID

type DID struct {
	ID         string // ID is the key. Use real DID value for that
	DID        string
	KID        string
	IndyVerKey string
	Doc        []byte
}

func (*DID) Method

func (d *DID) Method() DIDMethod

just playing around, this is probably not needed at this level

type DIDMethod

type DIDMethod string
const (
	DIDMethodPrefix                = "did:"
	DIDMethodKey         DIDMethod = DIDMethodPrefix + "key"
	DIDMethodPeer        DIDMethod = DIDMethodPrefix + "peer"
	DIDMethodIndy        DIDMethod = DIDMethodPrefix + "indy"
	DIDMethodWeb         DIDMethod = DIDMethodPrefix + "web"
	DIDMethodUnsupported DIDMethod = "unsupported"
)

type DIDStorage

type DIDStorage interface {
	SaveDID(did DID) error
	GetDID(id string) (*DID, error)
}

type Packager added in v0.30.4

type Packager interface {
	KMS() kms.KeyManager
	Crypto() cryptoapi.Crypto
	VDRegistry() vdr.Registry
	UnpackMessage(encMessage []byte) (*transport.Envelope, error)
	PackMessage(messageEnvelope *transport.Envelope) ([]byte, error)
	StorageProvider() storage.Provider
}

Jump to

Keyboard shortcuts

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