core

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 1 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
	String() string
	SignKey() any
	Storage() api.AgentStorage
}

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 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