btc

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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

func NewAccountFromMnemonic(mnemonic string, password string, index int64) (*Account, error)

@title 创建账户 @param mnemonic string 助记词 @param password string 密码 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息

func NewAccountFromSeed

func NewAccountFromSeed(seed []byte, index int64) (*Account, error)

@title 创建账户 @param seed []byte 种子 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息

func (*Account) Chain

func (Self *Account) Chain() common.Chain

@title 链类型 @param Self *Account @return _ common.Chain 链类型

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 异常信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL