Documentation ¶
Index ¶
Constants ¶
View Source
const WalletFileName = ".gowallet.w02" // version 0.2
Variables ¶
View Source
var AddressNetParams = chaincfg.MainNetParams
Functions ¶
func EncryptKey ¶
BIP38 encrypt implement
Types ¶
type FindProgress ¶
type Wallet ¶
type Wallet struct { No uint32 Private string Address string Balance *WalletBalance }
func (*Wallet) LoadBalance ¶
type WalletAccount ¶
func NewWalletAccount ¶
func NewWalletAccount(secret, salt []byte) (wa *WalletAccount, err error)
func NewWalletAccountFromSeed ¶
func NewWalletAccountFromSeed(seed []byte) (wa *WalletAccount, err error)
func (*WalletAccount) FindVanities ¶
func (wa *WalletAccount) FindVanities(patterns []string, progress FindProgress) (ws []*Wallet, err error)
Find vanity address
func (*WalletAccount) GenerateWallets ¶
func (wa *WalletAccount) GenerateWallets(start, count uint32) (wallets []*Wallet, err error)
Generate multiple address
func (*WalletAccount) NormalizeVanities ¶
func (wa *WalletAccount) NormalizeVanities(vanities []string) (patterns []string, err error)
type WalletBalance ¶
type WalletBalance struct {
Satoshi uint64
}
func NewBalance ¶
func NewBalance(satoshi uint64) *WalletBalance
func (*WalletBalance) FmtBtc ¶
func (wb *WalletBalance) FmtBtc() string
func (*WalletBalance) Value ¶
func (wb *WalletBalance) Value() uint64
type WalletFile ¶
type WalletFile struct {
Wallets []*Wallet
}
func LoadWalletFile ¶
func LoadWalletFile() (wf *WalletFile, err error)
func NewWalletFile ¶
func NewWalletFile(ws []*Wallet) *WalletFile
func (*WalletFile) Save ¶
func (wf *WalletFile) Save() (err error)
Click to show internal directories.
Click to hide internal directories.