dash

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//币种
	Symbol        = "DASH"
	MasterKey     = "DASH seed"
	CurveType     = owcrypt.ECC_CURVE_SECP256K1
	Decimals      = int32(8)
	RPCServerCore = 0
)

Variables

View Source
var (
	DASHMainnetAddressPrefix = btcTransaction.AddressPrefix{[]byte{0x4c}, nil, []byte{0x10}, "bc"}
	DASHTestnetAddressPrefix = btcTransaction.AddressPrefix{[]byte{0x8c}, nil, []byte{0x10}, "bc"}
)
View Source
var DASH_mainnetAddressP2PKH = addressEncoder.AddressType{"base58", addressEncoder.BTCAlphabet, "doubleSHA256", "h160", 20, []byte{0x4c}, nil}
View Source
var DASH_testnetAddressP2PKH = addressEncoder.AddressType{"base58", addressEncoder.BTCAlphabet, "doubleSHA256", "h160", 20, []byte{0x8c}, nil}

Functions

func NewAddressDecoder

func NewAddressDecoder(wm *WalletManager) *addressDecoder

NewAddressDecoder 地址解析器

Types

type AddressDecoder

type AddressDecoder interface {
	openwallet.AddressDecoder
	ScriptPubKeyToBech32Address(scriptPubKey []byte) (string, error)
}

type WalletManager

type WalletManager struct {
	*bitcoin.WalletManager
}

func NewWalletManager

func NewWalletManager() *WalletManager

Jump to

Keyboard shortcuts

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