server

package
v0.0.0-...-8591075 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: BSD-2-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(params Params, s *storage.Storage) error

StartServer creates a server object from params

Types

type Impl

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

Impl struct stores protocomms & storage for server implementation

func (*Impl) GetStorage

func (i *Impl) GetStorage() *storage.Storage

func (*Impl) SetStorage

func (i *Impl) SetStorage(t *testing.T, s *storage.Storage)

func (*Impl) Verify

func (i *Impl) Verify(_ context.Context, msg messages.Commitment) error

Verify func is the main endpoint for the mainnet-commitments server

type Params

type Params struct {
	KeyPath      string
	CertPath     string
	ContractHash string
	Port         string
}

Params struct holds data needed to create a server Impl

Jump to

Keyboard shortcuts

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