Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccountFromMnemonic ¶
@title 创建账户 @param mnemonic string 助记词 @param password string 密码 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息
func NewAccountFromSeed ¶
@title 创建账户 @param seed []byte 种子 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息
func (*Account) GetAddress ¶
func (Self *Account) GetAddress(addressType common.AddressType) (string, error)
@title 获取钱包地址 @param Self *Account @param addressType common.AddressType 地址类型 @return _ string 地址 @return _ error 异常信息
func (*Account) GetPrivateKey ¶
func (Self *Account) GetPrivateKey(addressType common.AddressType) (*secp256k1.PrivateKey, error)
@title 获取私钥 @param Self *Account @param addressType common.AddressType 地址类型 @return _ *secp256k1.PrivateKey 私钥 @return _ error 异常信息
Click to show internal directories.
Click to hide internal directories.