core

package
v0.30.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DID

type DID interface {
	KID() string
	Did() string // this is alias for KID() TODO: remove when done with ssi.DID

	StartEndp(storageH managed.Wallet, connectionID string)
	Store(mgdWallet, mgdStorage managed.Wallet)
	SavePairwiseForDID(mStorage managed.Wallet, theirDID DID, pw PairwiseMeta)
	StoreResult() error
	AEndp() (ae service.Addr, err error)
	SetAEndp(ae service.Addr)
	Route() []string

	String() string
	SignKey() any
	Packager() api.Packager

	// TODO: this is mainly for indy but could be merged with SignKey?
	VerKey() string
	Storage() managed.Wallet
}

type DIDDoc

type DIDDoc interface {
}

type Destination

type Destination struct {
}

type DidComm

type DidComm interface {
	Did() string
}

type Factor

type Factor interface {
}

type In

type In interface {
	Out

	// TODO: these seem to be found from did doc
	Wallet() int
}

type Method

type Method interface {
}

type MyDID

type MyDID interface {
	DID

	// this won't work because wen can be both: receiver and sender
	Pack(d []byte) ([]byte, error)
}

type Out

type Out interface {
	DidComm

	// TODO: these seem to be found from did doc
	VerKey() string
	Route() []string
	Endpoint() string
}

type Pairwise

type Pairwise interface {
	ID() string // DID? Could this be a DID?

	TheirDID() TheirDID
	MyDID() MyDID
}

type PairwiseMeta added in v0.30.9

type PairwiseMeta struct {
	Name  string
	Route []string
}

type Pipe

type Pipe interface {
	Pack(src []byte) (dst []byte, vk string, err error)
	Unpack(src []byte) (dst []byte, vk string, err error)

	// TODO: do we really need this? propably not when we start to use interface,
	// this was for value object (struct)
	IsNull() bool
}

type Resolver

type Resolver interface {
	Resolve(id DID) DIDDoc
}

type TheirDID

type TheirDID interface {
	DID

	// this won't work because wen can be both: receiver and sender
	Unpack(d []byte) ([]byte, error)

	// these things could work, all everything with cryptos could
	Verify() error
}

Jump to

Keyboard shortcuts

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