client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTransaction

func DecodeTransaction(transaction *rosettaTypes.ConstructionSubmitRequest) (*gethTypes.Transaction, error)

func Derive

func Derive(privateKey *ecdsa.PrivateKey) (*ecdsa.PublicKey, *common.Address, error)

func EncodeAccount

func EncodeAccount(publicKey *ecdsa.PublicKey, address *common.Address) *types.AccountIdentifier

func EncodeTransaction

func EncodeTransaction(transaction *gethTypes.Transaction) (string, error)

func HashTransaction

func HashTransaction(transaction *types.Transaction) common.Hash

func Keygen

func Keygen() (*ecdsa.PrivateKey, error)

func NewSigner

func NewSigner(chainId *big.Int) types.EIP155Signer

func ParseSignedTransaction

func ParseSignedTransaction(transaction *types.Transaction, signer *types.EIP155Signer) (*common.Address, *common.Address, *big.Int, error)

func Sign

func Sign(message []byte, privateKey *ecdsa.PrivateKey) (*[]byte, error)

func SignTransaction

func SignTransaction(transaction *types.Transaction, privateKey *ecdsa.PrivateKey, signer types.Signer) (*types.Transaction, error)

func Verify

func Verify(message []byte, publicKey *ecdsa.PublicKey, signature *[]byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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