Documentation
¶
Index ¶
- func ExtractRSVFromSignature(sig []byte) ([32]byte, [32]byte, uint8)
- func GenerateKeyPair() (common.Address, *ecdsa.PrivateKey)
- func MnemonicToKeys(mnemonic string) (*hdwallet.Wallet, error)
- func Sign(proof common.Hash, priv *ecdsa.PrivateKey) ([]byte, error)
- func SignHash(data string) ([]byte, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractRSVFromSignature ¶
ExtractRSVFromSignature extracts the R,S,V from the signature
func GenerateKeyPair ¶
func GenerateKeyPair() (common.Address, *ecdsa.PrivateKey)
GenerateKeyPair is a utility function to generate and format a new key pair for our use
func MnemonicToKeys ¶
MnemonicToKeys takes a mnemonic and returns a pointer to a wallet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.