Documentation ¶
Index ¶
- func CreateKeystoreByTmKey(privKey tmcrypto.PrivKey, dir, encryptPassword string) (string, error)
- func DecryptDataV3ForWeb3(cryptoJson keystore.CryptoJSON, auth string) ([]byte, error)
- func DecryptKeyForWeb3(keyjson []byte, auth string) (*keystore.Key, error)
- func EncodeECDSAKeyToTmKey(privateKeyECDSA *ecdsa.PrivateKey, keytype keys.SigningAlgo) (tmcrypto.PrivKey, error)
- func EncodeTmKeyToEthKey(privKey tmcrypto.PrivKey) (*ecdsa.PrivateKey, error)
- func ExportKeyStoreFile(privateKeyECDSA *ecdsa.PrivateKey, encryptPassword, fileName string) error
- func ImportKeyStoreFile(decryptPassword, password, fileName string, keytype keys.SigningAlgo) (privKetArmor string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeystoreByTmKey ¶
CreateKeystoreByTmKey create a eth keystore by accountname from keybase
func DecryptDataV3ForWeb3 ¶
func DecryptDataV3ForWeb3(cryptoJson keystore.CryptoJSON, auth string) ([]byte, error)
func DecryptKeyForWeb3 ¶
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.
Click to show internal directories.
Click to hide internal directories.