api

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown         = fmt.Errorf("server error")
	ErrInvalidAssignor = fmt.Errorf("invalid assignor")
	ErrTooManyRequest  = fmt.Errorf("too many request")
)

Functions

func NewServer

func NewServer(store store.Storage, conf *Configuration) *http.Server

Types

type Configuration

type Configuration struct {
	Key     kyber.Scalar    `toml:"-"`
	Signers []dkg.Node      `toml:"-"`
	Poly    []kyber.Point   `toml:"-"`
	Share   *share.PriShare `toml:"-"`
	Port    int             `toml:"port"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) ServeHTTP

func (hdr *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SignRequest

type SignRequest struct {
	Action    string `json:"action"`
	Watcher   string `json:"watcher"`
	Identity  string `json:"identity"`
	Signature string `json:"signature"`
	Data      string `json:"data"`
}

Jump to

Keyboard shortcuts

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