localkey

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChainID eth.ChainID    `yaml:"chainID"`
	KeyPath string         `yaml:"path,omitempty"`
	RawKey  *hexutil.Bytes `yaml:"raw,omitempty"`
}

func (*Config) Start

func (c *Config) Start(ctx context.Context, id seqtypes.SignerID, opts *work.ServiceOpts) (work.Signer, error)

type Signer

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

func NewSigner

func NewSigner(id seqtypes.SignerID, log log.Logger, chainID eth.ChainID, priv *ecdsa.PrivateKey) *Signer

func (*Signer) ChainID

func (s *Signer) ChainID() eth.ChainID

func (*Signer) Close

func (s *Signer) Close() error

func (*Signer) ID

func (s *Signer) ID() seqtypes.SignerID

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, v work.Block) (work.SignedBlock, error)

func (*Signer) String

func (s *Signer) String() string

Jump to

Keyboard shortcuts

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