Documentation
¶
Index ¶
Constants ¶
View Source
const ( Mainnet Network = "mainnet" Testnet Network = "testnet" Electrum BackendName = "electrum" Btcd BackendName = "btcd" )
Variables ¶
This section is empty.
Functions ¶
func GenesisBlock ¶
func GetDefaultServer ¶
func GetDefaultServer(network Network, backend BackendName, addr string) (string, string)
Picks a default server for electrum or localhost for btcd Returns a pair of hostname:port (or pseudo-port for electrum)
func VerifyMandN ¶
Types ¶
type BackendName ¶
type BackendName string
type Network ¶
type Network string
func AddressToNetwork ¶
func XpubToNetwork ¶
prefixes come from BIP32 https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format
func (Network) ChainConfig ¶
ChainConfig returns a given chaincfg.Params for a given Network
Click to show internal directories.
Click to hide internal directories.