Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator interface { Length() int Foreach(start, end int) Iterator NewWallet(v interface{}) (*Wallet, error) }
Creator 钱包创建者
type FSDriver ¶
type FSDriver struct {
// contains filtered or unexported fields
}
func NewFSDriver ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory 钱包创建工厂
func NewFactory ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func FormatMetadata ¶
func (*Metadata) GetAddress ¶
func (*Metadata) GetMnemonic ¶
func (*Metadata) GetPrivateKey ¶
func (*Metadata) GetPublicKey ¶
type MnemonicCreator ¶
type MnemonicCreator struct {
// contains filtered or unexported fields
}
MnemonicCreator 从助记词创建用户
func NewMnemonicCreator ¶
func NewMnemonicCreator(mds []*Metadata) *MnemonicCreator
func (*MnemonicCreator) Foreach ¶
func (mc *MnemonicCreator) Foreach(start, end int) Iterator
func (*MnemonicCreator) Length ¶
func (mc *MnemonicCreator) Length() int
func (*MnemonicCreator) NewWallet ¶
func (mc *MnemonicCreator) NewWallet(v interface{}) (*Wallet, error)
type MnemonicCreatorIterator ¶
type MnemonicCreatorIterator struct {
// contains filtered or unexported fields
}
MnemonicCreatorIterator 从助记词创建用户的迭代器
func (*MnemonicCreatorIterator) HasNext ¶
func (i *MnemonicCreatorIterator) HasNext() bool
func (*MnemonicCreatorIterator) Next ¶
func (i *MnemonicCreatorIterator) Next() (index int, v interface{})
type ProduceCreator ¶
type ProduceCreator struct {
// contains filtered or unexported fields
}
ProduceCreator 新用户创建者
func NewProduceCreator ¶
func NewProduceCreator(number int) *ProduceCreator
func (*ProduceCreator) Foreach ¶
func (mc *ProduceCreator) Foreach(start, end int) Iterator
func (*ProduceCreator) Length ¶
func (mc *ProduceCreator) Length() int
func (*ProduceCreator) NewWallet ¶
func (mc *ProduceCreator) NewWallet(_ interface{}) (*Wallet, error)
type ProduceCreatorIterator ¶
type ProduceCreatorIterator struct {
// contains filtered or unexported fields
}
ProduceCreatorIterator 新用户创建者的迭代器
func (*ProduceCreatorIterator) HasNext ¶
func (i *ProduceCreatorIterator) HasNext() bool
func (*ProduceCreatorIterator) Next ¶
func (i *ProduceCreatorIterator) Next() (index int, v interface{})
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func CreateNewWallet ¶
func NewWalletFromMetadata ¶
func NewWalletFromMnemonic ¶
func (*Wallet) GetKeyParis ¶
GetKeyParis publicKey, privateKey
Click to show internal directories.
Click to hide internal directories.