Documentation
¶
Index ¶
- type API
- type BasicCredentials
- type Config
- type Option
- type Pair
- type PairEvent
- type Store
- type StoreConfig
- type ToFold
- type ToUnfold
- type Wizard
- func (w *Wizard) FoldMessage(c context.Context, req *proto.MessageToFold) (*proto.EncodedMessage, error)
- func (w *Wizard) GeneratePublicKey(c context.Context, req *proto.Claims) (*proto.PublicKey, error)
- func (w *Wizard) Run() chan error
- func (w *Wizard) UnfoldMessage(c context.Context, req *proto.MessageToUnfold) (*proto.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicCredentials ¶
type Config ¶
type Config struct {
APIPort string `yaml:"api_port" env:"API_PORT"`
RPCPort string `yaml:"rpc_port" env:"RPC_PORT"`
StoreBackend StoreConfig `yaml:"store_backend" env:"STORE_BACKEND"`
}
func LoadConfig ¶
type Option ¶
func WithConfigRPC ¶
func WithDefaultAPI ¶
func WithDefaultAPI() Option
func WithFullAvailableAPI ¶
func WithFullAvailableAPI() Option
func WithRandomSource ¶
type StoreConfig ¶
type ToFold ¶
type ToFold struct {
Credentials BasicCredentials `json:"credentials"`
Message string `json:"message"`
PublicKey string `json:"public_key"`
}
type ToUnfold ¶
type ToUnfold struct {
Credentials BasicCredentials `json:"credentials"`
FoldedMessage string `json:"message"`
PublicKey string `json:"public_key"`
}
type Wizard ¶
type Wizard struct {
// contains filtered or unexported fields
}
func (*Wizard) FoldMessage ¶
func (w *Wizard) FoldMessage(c context.Context, req *proto.MessageToFold) (*proto.EncodedMessage, error)
func (*Wizard) GeneratePublicKey ¶
func (*Wizard) UnfoldMessage ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.

