Documentation
¶
Index ¶
Constants ¶
const ( // DeploymentTestDummy ... DeploymentTestDummy = iota // DeploymentCSV ... DeploymentCSV // DeploymentSegwit ... DeploymentSegwit // DefinedDeployments ... DefinedDeployments )
Variables ¶
var ( // NewTxBuilder re-exports bitoin.NewTxBuilder NewTxBuilder = bitcoin.NewTxBuilder // NewClient re-exports bitcoin.NewClient NewClient = bitcoin.NewClient // DefaultClientOptions re-exports bitcoin.DefaultClientOptions DefaultClientOptions = bitcoin.DefaultClientOptions )
var MainNetParams = chaincfg.Params{ Name: "mainnet", Net: 0xdab6c3fa, DefaultPort: "12024", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgb", PubKeyHashAddrID: 0x1e, ScriptHashAddrID: 0x32, PrivateKeyID: 0x80, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x88, 0xad, 0xe4}, HDPublicKeyID: [4]byte{0x04, 0x88, 0xb2, 0x1e}, HDCoinType: 0x14, }
MainNetParams returns the chain configuration for mainnet
var RegressionNetParams = chaincfg.Params{ Name: "regtest", Net: 0xd191841e, DefaultPort: "18444", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgbrt", PubKeyHashAddrID: 0x7e, ScriptHashAddrID: 0x8c, PrivateKeyID: 0xfe, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94}, HDPublicKeyID: [4]byte{0x04, 0x35, 0x87, 0xcf}, HDCoinType: 0x14, }
var TestnetParams = chaincfg.Params{ Name: "testnet", Net: 0xddbdc8fd, DefaultPort: "12026", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgbt", PubKeyHashAddrID: 0x7e, ScriptHashAddrID: 0x8c, PrivateKeyID: 0xfe, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94}, HDPublicKeyID: [4]byte{0x04, 0x35, 0x87, 0xcf}, HDCoinType: 0x14, }
Functions ¶
This section is empty.
Types ¶
type AddressDecoder ¶
type AddressDecoder = bitcoin.AddressDecoder
AddressDecoder encapsulates the chain specific configurations and implements the address.Decoder interface
type AddressEncodeDecoder ¶ added in v0.2.1
type AddressEncodeDecoder = bitcoin.AddressEncodeDecoder
AddressEncodeDecoder implements the address.EncodeDecoder interface
type AddressEncoder ¶
type AddressEncoder = bitcoin.AddressEncoder
AddressEncoder encapsulates the chain specific configurations and implements the address.Encoder interface
type Client ¶
A Client interacts with an instance of the Bitcoin network using the RPC interface exposed by a Bitcoin node.
type ClientOptions ¶
type ClientOptions = bitcoin.ClientOptions
ClientOptions are used to parameterise the behaviour of the Client.
type GasEstimator ¶
type GasEstimator = bitcoin.GasEstimator
A GasEstimator returns the SATs-per-byte that is needed in order to confirm transactions with an estimated maximum delay of one block. In distributed networks that collectively build, sign, and submit transactions, it is important that all nodes in the network have reached consensus on the SATs-per-byte.