Documentation ¶
Index ¶
- Constants
- func Decrypt(password string, keystoredir string, encryptedData EncryptedData) ([]byte, error)
- func GetEncryptionPublicKey(receiverAddress string) string
- func GetKeystoreDirPath(dataDir string) string
- func NewKeystoreAccount(dataDir, password string) (common.Address, error)
- func RecoverPrivateKey(keystoreDir string, pwd string, address common.Address) ([]byte, error)
- func Sign(msg []byte, privKey *ecdsa.PrivateKey) (sig []byte, err error)
- func SignTx(tx state.Tx, privKey *ecdsa.PrivateKey) (state.SignedTx, error)
- func SignTxWithKeystoreAccount(tx state.Tx, address common.Address, pwd, keystoreDir string) (state.SignedTx, error)
- func Verify(msg, sig []byte) (*ecdsa.PublicKey, error)
- type EncryptedData
- type Wallet
Constants ¶
View Source
const X25519 = "x25519-xsalsa20-poly1305"
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(password string, keystoredir string, encryptedData EncryptedData) ([]byte, error)
Decrypt some encrypted data.
func GetEncryptionPublicKey ¶
GetEncryptionPublicKey returns user's public Encryption key derived from privateKey Ethereum key
func GetKeystoreDirPath ¶
func RecoverPrivateKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.