Documentation ¶
Overview ¶
Package account contains code for managing account keypairs as well as saving them securely to disk.
Index ¶
- func GetWalletPath(path string) (walletPath string, err error)
- func KeystoreSeal(account *Account, password string) (j []byte, e error)
- func StoreToKeyStoreFile(account *Account, password, walletName string) (filePath string, err error)
- func Verify(address string, message, signature []byte) (valid bool, err error)
- type Account
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWalletPath ¶
GetWalletPath checks if a file exists at the specified path.
func KeystoreSeal ¶
KeystoreSeal create an encrypted json keystore with the private key of the account
Types ¶
type Account ¶
type Account struct { SigningKey ed25519.PrivateKey Address string }
Account holds the signing/private key and the aeternity account address
func FromHexString ¶
FromHexString creates an Account from a hexstring
func KeystoreOpen ¶
KeystoreOpen open and decrypt a keystore
func LoadFromKeyStoreFile ¶
LoadFromKeyStoreFile loads an encrypted Account from a JSON file
func (*Account) SigningKeyToHexString ¶
SigningKeyToHexString returns the SigningKey as an hex string
Click to show internal directories.
Click to hide internal directories.