messagesigner

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 13 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 interface {
	RegisterSigner(...key.Key) error
	SignMsg(msg *types.Message) (*types.SignedMessage, error)
	Sign(from string, data []byte) (*crypto.Signature, error)
	HasSigner(addr string) bool
}

func NewSigner

func NewSigner() Signer

type SignerHouse

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

func (*SignerHouse) HasSigner

func (s *SignerHouse) HasSigner(addr string) bool

func (*SignerHouse) RegisterSigner

func (s *SignerHouse) RegisterSigner(keys ...key.Key) error

func (*SignerHouse) Sign

func (s *SignerHouse) Sign(from string, data []byte) (*crypto.Signature, error)

func (*SignerHouse) SignMsg

func (s *SignerHouse) SignMsg(msg *types.Message) (*types.SignedMessage, error)

Jump to

Keyboard shortcuts

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