Documentation
¶
Index ¶
- Constants
- type AddressDecoderV2
- func (dec *AddressDecoderV2) AddressDecode(addr string, opts ...interface{}) ([]byte, error)
- func (dec *AddressDecoderV2) AddressEncode(hash []byte, opts ...interface{}) (string, error)
- func (dec *AddressDecoderV2) AddressVerify(address string, opts ...interface{}) bool
- func (dec *AddressDecoderV2) ScriptPubKeyToBech32Address(scriptPubKey []byte) (string, error)
- type WalletManager
Constants ¶
View Source
const ( //币种 Symbol = "BTR" CurveType = owcrypt.ECC_CURVE_SECP256K1 Decimals = int32(8) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressDecoderV2 ¶
type AddressDecoderV2 struct {
*openwallet.AddressDecoderV2Base
// contains filtered or unexported fields
}
AddressDecoderV2
func NewAddressDecoder ¶
func NewAddressDecoder(wm *WalletManager) *AddressDecoderV2
NewAddressDecoder 地址解析器
func (*AddressDecoderV2) AddressDecode ¶
func (dec *AddressDecoderV2) AddressDecode(addr string, opts ...interface{}) ([]byte, error)
AddressDecode 地址解析
func (*AddressDecoderV2) AddressEncode ¶
func (dec *AddressDecoderV2) AddressEncode(hash []byte, opts ...interface{}) (string, error)
AddressEncode 地址编码
func (*AddressDecoderV2) AddressVerify ¶
func (dec *AddressDecoderV2) AddressVerify(address string, opts ...interface{}) bool
AddressVerify 地址校验
func (*AddressDecoderV2) ScriptPubKeyToBech32Address ¶
func (dec *AddressDecoderV2) ScriptPubKeyToBech32Address(scriptPubKey []byte) (string, error)
ScriptPubKeyToBech32Address scriptPubKey转Bech32地址
type WalletManager ¶
type WalletManager struct {
*bitcoin.WalletManager
}
func NewWalletManager ¶
func NewWalletManager() *WalletManager
Click to show internal directories.
Click to hide internal directories.