Documentation ¶
Index ¶
- func AddressFromHexKey(privKeyHex string) (pubAddressHex string, err error)
- func Backend(c *logical.BackendConfig) *backend
- func CreateKey() (privKeyHex, pubAddress string, err error)
- func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)
- func SignTxWithHexKey(chainID int, privKeyHex, data string, to common.Address, ...) (jsonTx, rlpTx string, err error)
- func SignWithHexKey(hash []byte, privKeyHex string) (sig []byte, err error)
- type Client
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressFromHexKey ¶
AddressFromHexKey : Given a private key as a hex string, return its corresponding hex address
func Backend ¶
func Backend(c *logical.BackendConfig) *backend
func CreateKey ¶
CreateKey : Generates a secp256k1 key, returns its hex representation & corresponding address
func SignTxWithHexKey ¶
func SignTxWithHexKey(chainID int, privKeyHex, data string, to common.Address, nonce, gasLimit uint64, amount, gasPrice *big.Int) (jsonTx, rlpTx string, err error)
SignTxWithHexKey : Accepts arguments to NewTransaction (albeit in a different order), returns a signed RLP-encoded transaction string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func ClientFromConfig ¶
ClientFromConfig : Constructor which takes a Config to produce a Client.
Click to show internal directories.
Click to hide internal directories.