signer

package
v0.0.0-...-02c3ccb Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

Signer processes mutations and sends them to the trillian map.

func New

func New(realm string,
	mapID int64,
	tmap trillian.TrillianMapClient,
	logID int64,
	sths appender.Remote,
	mutator mutator.Mutator,
	mutations mutator.Mutation,
	factory transaction.Factory) *Signer

New creates a new instance of the signer.

func (*Signer) CreateEpoch

func (s *Signer) CreateEpoch(ctx context.Context) error

CreateEpoch signs the current map head.

func (*Signer) StartSigning

func (s *Signer) StartSigning(ctx context.Context, interval time.Duration)

StartSigning advance epochs once per interval.

Jump to

Keyboard shortcuts

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