ethkeystore

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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 added in v1.7.0

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

func DecryptKeyForWeb3 added in v1.7.0

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

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

func EncodeECDSAKeyToTmKey added in v1.7.0

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 added in v1.7.0

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