Documentation ¶
Index ¶
Constants ¶
View Source
const PrivateKeyLength = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keypair ¶
type Keypair struct {
// contains filtered or unexported fields
}
func GenerateKeypair ¶
func NewKeypair ¶
func NewKeypair(pk ecdsa.PrivateKey) *Keypair
func NewKeypairFromString ¶
NewKeypairFromPrivateKey parses a string for a hex private key. Must be at least PrivateKeyLength long.
func (*Keypair) CommonAddress ¶
CommonAddress returns the Ethereum address in the common.Address Format
Click to show internal directories.
Click to hide internal directories.