crypto

package
v0.0.0-...-77985df Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSm2Signer

func NewSm2Signer(chainId *big.Int) types.Signer

Types

type Sm2Signer

type Sm2Signer struct {
	types.EIP155Signer
}

func (Sm2Signer) ChainID

func (s Sm2Signer) ChainID() *big.Int

func (Sm2Signer) Equal

func (s Sm2Signer) Equal(signer types.Signer) bool

func (Sm2Signer) Hash

func (s Sm2Signer) Hash(tx *types.Transaction) common.Hash

func (Sm2Signer) Sender

func (s Sm2Signer) Sender(tx *types.Transaction) (common.Address, error)

func (Sm2Signer) SignatureValues

func (s Sm2Signer) SignatureValues(tx *types.Transaction, sig []byte) (R, S, V *big.Int, err error)

Jump to

Keyboard shortcuts

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