digibyte

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeploymentTestDummy ...
	DeploymentTestDummy = iota

	// DeploymentCSV ...
	DeploymentCSV

	// DeploymentSegwit ...
	DeploymentSegwit

	// DefinedDeployments ...
	DefinedDeployments
)

Variables

View Source
var (
	// NewTxBuilder re-exports bitoin.NewTxBuilder
	NewTxBuilder = bitcoin.NewTxBuilder

	// NewClient re-exports bitcoin.NewClient
	NewClient = bitcoin.NewClient
)
View Source
var MainNetParams = chaincfg.Params{
	Name:        "mainnet",
	Net:         0xdab6c3fa,
	DefaultPort: "12024",

	GenesisBlock: &genesisBlock,
	GenesisHash:  &genesisHash,

	Bech32HRPSegwit: "dgb",

	PubKeyHashAddrID:        0x1e,
	ScriptHashAddrID:        0x3f,
	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

View Source
var NewGasEstimator = bitcoin.NewGasEstimator

NewGasEstimator re-exports bitcoin.NewGasEstimator.

View Source
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,
}

RegressionNetParams returns the chain configuration for regression net

View Source
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,
}

TestnetParams returns the chain configuration for testnet

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

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

type Client = bitcoin.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.

func DefaultClientOptions

func DefaultClientOptions() ClientOptions

DefaultClientOptions returns ClientOptions with the default settings. These settings are valid for use with the default local deployment of the multichain. In production, the host, user, and password should be changed.

type GasEstimator

type GasEstimator = bitcoin.GasEstimator

GasEstimator re-exports bitcoin.GasEstimator.

type Tx

type Tx = bitcoin.Tx

Tx represents a simple Bitcoin transaction that implements the Bitcoin Compat API.

type TxBuilder

type TxBuilder = bitcoin.TxBuilder

The TxBuilder is an implementation of a UTXO-compatible transaction builder for Bitcoin.

Jump to

Keyboard shortcuts

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