signer

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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 TickRecoverer

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

TickRecoverer recovers the signer address from a tick data point and a signature.

func NewTickRecoverer

func NewTickRecoverer(recoverer crypto.Recoverer) *TickRecoverer

NewTickRecoverer creates a new TickRecoverer instance.

func (*TickRecoverer) Recover

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

Recover implements the Recoverer interface.

func (*TickRecoverer) Supports

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

Supports implements the Recoverer interface.

type TickSigner

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

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

func NewTickSigner

func NewTickSigner(signer wallet.Key) *TickSigner

NewTickSigner creates a new TickSigner instance.

func (*TickSigner) Sign

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

Sign implements the Signer interface.

func (*TickSigner) Supports

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

Supports implements the Signer interface.

Jump to

Keyboard shortcuts

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