signer

package
v0.0.0-...-fa9a987 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey []byte

PrivateKey is a private key or reference to private key

type PublicKey

type PublicKey []byte

PublicKey is a public key

type Signer

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

Reference implementation to sign transactions - not meant to be used for production

func New

func New(driver xc.Driver, secret string, cfgMaybe *xc.ChainConfig) (*Signer, error)

func (*Signer) MustPublicKey

func (s *Signer) MustPublicKey() PublicKey

func (*Signer) MustSignAll

func (s *Signer) MustSignAll(data []xc.TxDataToSign) []xc.TxSignature

func (*Signer) PublicKey

func (s *Signer) PublicKey() (PublicKey, error)

func (*Signer) Sign

func (s *Signer) Sign(data xc.TxDataToSign) (xc.TxSignature, error)

func (*Signer) SignAll

func (s *Signer) SignAll(data []xc.TxDataToSign) ([]xc.TxSignature, error)

Jump to

Keyboard shortcuts

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