Documentation ¶
Index ¶
- func Address(key ed25519.PrivateKey) types.Address
- func GenPair(no int, mnemonic string, salt string) (address types.Address, key ed25519.PrivateKey)
- func NewMnemonic() (mnemonic string, err error)
- func PublicKey(key ed25519.PrivateKey) ed25519.PublicKey
- func Unlock(key string, w ...Wallet) (ok bool)
- type Account
- type Contact
- type Wallet
- type WalletImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Address ¶
func Address(key ed25519.PrivateKey) types.Address
Address retrives Address key form private
func NewMnemonic ¶
NewMnemonic generates new wallet mnemonic
Types ¶
type Account ¶
Account structure for the wallet interface
func LuckyLookup ¶
Lookup for an account in walltes. It panics if there is not exactly one account
type Wallet ¶
type Wallet struct {
WalletImpl
}
Wallet decorator
func (Wallet) DisplayName ¶
DisplayName retruns composition of wallet name and its file
func (Wallet) LuckyImportKey ¶
LuckyImportKey imports key to the wallet. It panics if failed to unlock
func (Wallet) LuckyNewPair ¶
LuckyNewPair creates keys pair. It panics if failed to unlock
func (Wallet) LuckySave ¶
func (wal Wallet) LuckySave()
LuckySave saves wallet. It panics if failed to unlock
func (Wallet) LuckyUnlock ¶
LuckyUnlock unlocks wallet. It panics if failed to unlock
Click to show internal directories.
Click to hide internal directories.