Documentation ¶
Index ¶
- func DecodeABI(txInput string, abiReader io.Reader) (map[string]interface{}, error)
- func DecodePublicKey(pubkey string) (*ecdsa.PublicKey, error)
- func DecryptPrivateKey(in io.Reader, secret []byte, out io.Writer) error
- func EncodeABI(method string, args []interface{}, abiReader io.Reader) (string, error)
- func GenPair() (*ecdsa.PrivateKey, stdcrypto.PublicKey, error)
- func GetAddress(privKey string) (string, error)
- func SaveAddress(pubKey stdcrypto.PublicKey, out io.Writer) error
- func SavePrivateKey(privKey *ecdsa.PrivateKey, secret []byte, out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPrivateKey ¶
DecryptPrivateKey decrypts the encrypted private key read from the given io.Reader and writes the decrypted output (i.e the plaintext) to the given io.Writer.
func GenPair ¶
func GenPair() (*ecdsa.PrivateKey, stdcrypto.PublicKey, error)
GenPair generates a (private, public) key pair suitable for use on any ethereum network.
func GetAddress ¶
func SaveAddress ¶
SaveAddress generates the EIP55-compliant hex string representation of the address associated with the given public key and saves it to the given io.Writer.
func SavePrivateKey ¶
SavePrivateKey encrypts the private key with the given secret using AES and writes the encrypted output to the given io.Writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.