Documentation
¶
Index ¶
- func DecodeTransaction(transaction *rosettaTypes.ConstructionSubmitRequest) (*gethTypes.Transaction, error)
- func Derive(privateKey *ecdsa.PrivateKey) (*ecdsa.PublicKey, *common.Address, error)
- func EncodeAccount(publicKey *ecdsa.PublicKey, address *common.Address) *types.AccountIdentifier
- func EncodeTransaction(transaction *gethTypes.Transaction) (string, error)
- func HashTransaction(transaction *types.Transaction) common.Hash
- func Keygen() (*ecdsa.PrivateKey, error)
- func NewSigner(chainId *big.Int) types.EIP155Signer
- func ParseSignedTransaction(transaction *types.Transaction, signer *types.EIP155Signer) (*common.Address, *common.Address, *big.Int, error)
- func Sign(message []byte, privateKey *ecdsa.PrivateKey) (*[]byte, error)
- func SignTransaction(transaction *types.Transaction, privateKey *ecdsa.PrivateKey, ...) (*types.Transaction, error)
- func Verify(message []byte, publicKey *ecdsa.PublicKey, signature *[]byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTransaction ¶
func DecodeTransaction(transaction *rosettaTypes.ConstructionSubmitRequest) (*gethTypes.Transaction, error)
func EncodeAccount ¶
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 ParseSignedTransaction ¶
func SignTransaction ¶
func SignTransaction(transaction *types.Transaction, privateKey *ecdsa.PrivateKey, signer types.Signer) (*types.Transaction, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.