signer

package
v0.11.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tick

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

Tick signs tick data points and recovers the signer address from a signature.

func NewTick

func NewTick(signer wallet.Key, recoverer crypto.Recoverer) *Tick

NewTick creates a new Tick instance.

func (*Tick) Recover

func (t *Tick) Recover(
	_ context.Context,
	model string,
	data datapoint.Point,
	signature types.Signature,
) (*types.Address, error)

Recover implements the Recoverer interface.

func (*Tick) Sign

func (t *Tick) Sign(_ context.Context, model string, data datapoint.Point) (*types.Signature, error)

Sign implements the Signer interface.

func (*Tick) Supports

func (t *Tick) Supports(_ context.Context, data datapoint.Point) bool

Supports implements the Signer and Recoverer interfaces.

Jump to

Keyboard shortcuts

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