aggsigdb

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStopped = errors.New("database stopped")

Functions

This section is empty.

Types

type MemDB

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

MemDB is a basic memory implementation of core.AggSigDB.

func NewMemDB

func NewMemDB(deadliner core.Deadliner) *MemDB

NewMemDB creates a basic memory based AggSigDB.

func (*MemDB) Await

func (db *MemDB) Await(ctx context.Context, duty core.Duty, pubKey core.PubKey) (core.SignedData, error)

Await implements core.AggSigDB, see its godoc.

func (*MemDB) Run

func (db *MemDB) Run(ctx context.Context)

Run blocks and runs the database process until the context is cancelled.

func (*MemDB) Store

func (db *MemDB) Store(ctx context.Context, duty core.Duty, pubKey core.PubKey, data core.SignedData) error

Store implements core.AggSigDB, see its godoc.

Jump to

Keyboard shortcuts

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