signer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMsg

func ReadMsg(reader io.Reader) (msg cometprotoprivval.Message, err error)

ReadMsg reads a message from an io.Reader

func WriteMsg

func WriteMsg(writer io.Writer, msg cometprotoprivval.Message) (err error)

WriteMsg writes a message to an io.Writer

Types

type HorcruxConnection added in v0.1.0

type HorcruxConnection interface {
	SendRequest(request cometprotoprivval.Message) (*cometprotoprivval.Message, error)
}

type HorcruxGRPCClient added in v0.1.0

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

func NewHorcruxGRPCClient added in v0.1.0

func NewHorcruxGRPCClient(
	logger cometlog.Logger,
	address string,
) (*HorcruxGRPCClient, error)

func (*HorcruxGRPCClient) SendRequest added in v0.1.0

type ReconnRemoteSigner

type ReconnRemoteSigner struct {
	cometservice.BaseService
	// contains filtered or unexported fields
}

ReconnRemoteSigner dials using its dialer and responds to any signature requests using its privVal.

func NewReconnRemoteSigner

func NewReconnRemoteSigner(
	address string,
	logger cometlog.Logger,
	horcruxConnection HorcruxConnection,
	dialer net.Dialer,
) *ReconnRemoteSigner

NewReconnRemoteSigner return a ReconnRemoteSigner that will dial using the given dialer and respond to any signature requests over the connection using the given privVal.

If the connection is broken, the ReconnRemoteSigner will attempt to reconnect.

func (*ReconnRemoteSigner) OnStart

func (rs *ReconnRemoteSigner) OnStart() error

OnStart implements cmn.Service.

func (*ReconnRemoteSigner) OnStop

func (rs *ReconnRemoteSigner) OnStop()

OnStop implements cmn.Service.

Jump to

Keyboard shortcuts

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