dash

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BlueOak-1.0.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFee          = 1  // 1 sat/byte
	DefaultFeeRateLimit = 20 // 20 sats/byte
)

Variables

View Source
var (
	UnitInfo = dex.UnitInfo{
		AtomicUnit: "Sats",
		Conventional: dex.Denomination{
			Unit:             "DASH",
			ConversionFactor: 1e8,
		},
		Alternatives: []dex.Denomination{
			{
				Unit:             "mDASH",
				ConversionFactor: 1e5,
			},
			{
				Unit:             "µDASH",
				ConversionFactor: 1e2,
			},
		},
		FeeRateDenom: "B",
	}

	// MainNetParams are the clone parameters for mainnet.
	MainNetParams = btc.ReadCloneParams(&btc.CloneParams{
		Name:             "mainnet",
		PubKeyHashAddrID: 0x4c,
		ScriptHashAddrID: 0x10,
		Bech32HRPSegwit:  "",
		CoinbaseMaturity: 100,
		Net:              0xbf0c6bbd,
		HDPrivateKeyID:   [4]byte{0x04, 0x88, 0xAD, 0xE4},
		HDPublicKeyID:    [4]byte{0x04, 0x88, 0xB2, 0x1E},
		GenesisHash:      mustHash("00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6"),
	})
	// TestNetParams are the clone parameters for testnet.
	TestNetParams = btc.ReadCloneParams(&btc.CloneParams{
		Name:             "testnet3",
		PubKeyHashAddrID: 0x8c,
		ScriptHashAddrID: 0x13,
		Bech32HRPSegwit:  "",
		CoinbaseMaturity: 100,

		Net:            0x881823,
		HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94},
		HDPublicKeyID:  [4]byte{0x04, 0x35, 0x87, 0xCF},
		GenesisHash:    mustHash("00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c"),
	})
	// RegressionNetParams are the clone parameters for simnet.
	RegressionNetParams = btc.ReadCloneParams(&btc.CloneParams{
		Name:             "regtest",
		PubKeyHashAddrID: 0x8c,
		ScriptHashAddrID: 0x13,
		Bech32HRPSegwit:  "",
		CoinbaseMaturity: 100,

		Net:            0x848a5332,
		HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94},
		HDPublicKeyID:  [4]byte{0x04, 0x35, 0x87, 0xcf},
		GenesisHash:    mustHash("000008ca1832a4baf228eb1553c03d3a2c8e02399550dd6ea8d65cec3ef23d2e"),
	})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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