ethkeystore

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeystoreByTmKey

func CreateKeystoreByTmKey(privKey tmcrypto.PrivKey, dir, encryptPassword string) (string, error)

CreateKeystoreByTmKey create a eth keystore by accountname from keybase

func DecryptDataV3ForWeb3

func DecryptDataV3ForWeb3(cryptoJson keystore.CryptoJSON, auth string) ([]byte, error)

func DecryptKeyForWeb3

func DecryptKeyForWeb3(keyjson []byte, auth string) (*keystore.Key, error)

DecryptKey decrypts a key from a json blob, returning the private key itself.

func EncodeECDSAKeyToTmKey

func EncodeECDSAKeyToTmKey(privateKeyECDSA *ecdsa.PrivateKey, keytype keys.SigningAlgo) (tmcrypto.PrivKey, error)

EncodeTmKeyToEthKey transfer tendermint key to a ethereum key

func EncodeTmKeyToEthKey

func EncodeTmKeyToEthKey(privKey tmcrypto.PrivKey) (*ecdsa.PrivateKey, error)

EncodeTmKeyToEthKey transfer tendermint key to a ethereum key

func ExportKeyStoreFile

func ExportKeyStoreFile(privateKeyECDSA *ecdsa.PrivateKey, encryptPassword, fileName string) error

ExportKeyStoreFile Export Key to keystore file

func ImportKeyStoreFile

func ImportKeyStoreFile(decryptPassword, password, fileName string, keytype keys.SigningAlgo) (privKetArmor string, err error)

ImportKeyStoreFile Export Key to keystore file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL