Versions in this module Expand all Collapse all v0 v0.0.1 Sep 9, 2023 Changes in this version + const DefinedDeployments + const DeploymentCSV + const DeploymentSegwit + const DeploymentTestDummy + const DeploymentTestDummyMinActivation + var DefaultSignetChallenge = hex.DecodeString(...) + var DefaultSignetDNSSeeds = []DNSSeed + var ErrDuplicateNet = errors.New("duplicate Litecoin network") + var ErrInvalidHDKeyID = errors.New("invalid hd extended key version bytes") + var ErrNoBlockClock = fmt.Errorf("no block clock synchronized") + var ErrUnknownHDKeyID = errors.New("unknown hd private extended key bytes") + var MainNetParams = Params + var RegressionNetParams = Params + var SigNetParams = CustomSignetParams(DefaultSignetChallenge, DefaultSignetDNSSeeds) + var SimNetParams = Params + var TestNet4Params = Params + func HDPrivateKeyToPublicKeyID(id []byte) ([]byte, error) + func IsBech32SegwitPrefix(prefix string) bool + func IsPubKeyHashAddrID(id byte) bool + func IsScriptHashAddrID(id byte) bool + func Register(params *Params) error + func RegisterHDKeyID(hdPublicKeyID []byte, hdPrivateKeyID []byte) error + type BlockClock interface + PastMedianTime func(*wire.BlockHeader) (time.Time, error) + type Checkpoint struct + Hash *chainhash.Hash + Height int32 + type ClockConsensusDeploymentEnder interface + SynchronizeClock func(clock BlockClock) + type ClockConsensusDeploymentStarter interface + SynchronizeClock func(clock BlockClock) + type ConsensusDeployment struct + BitNumber uint8 + CustomActivationThreshold uint32 + DeploymentEnder ConsensusDeploymentEnder + DeploymentStarter ConsensusDeploymentStarter + MinActivationHeight uint32 + type ConsensusDeploymentEnder interface + HasEnded func(*wire.BlockHeader) (bool, error) + type ConsensusDeploymentStarter interface + HasStarted func(*wire.BlockHeader) (bool, error) + type DNSSeed struct + HasFiltering bool + Host string + func (d DNSSeed) String() string + type MedianTimeDeploymentEnder struct + func NewMedianTimeDeploymentEnder(endTime time.Time) *MedianTimeDeploymentEnder + func (m *MedianTimeDeploymentEnder) EndTime() time.Time + func (m *MedianTimeDeploymentEnder) HasEnded(blkHeader *wire.BlockHeader) (bool, error) + func (m *MedianTimeDeploymentEnder) SynchronizeClock(clock BlockClock) + type MedianTimeDeploymentStarter struct + func NewMedianTimeDeploymentStarter(startTime time.Time) *MedianTimeDeploymentStarter + func (m *MedianTimeDeploymentStarter) HasStarted(blkHeader *wire.BlockHeader) (bool, error) + func (m *MedianTimeDeploymentStarter) StartTime() time.Time + func (m *MedianTimeDeploymentStarter) SynchronizeClock(clock BlockClock) + type Params struct + BIP0034Height int32 + BIP0065Height int32 + BIP0066Height int32 + Bech32HRPSegwit string + Checkpoints []Checkpoint + CoinbaseMaturity uint16 + DNSSeeds []DNSSeed + DefaultPort string + Deployments [DefinedDeployments]ConsensusDeployment + GenerateSupported bool + GenesisBlock *wire.MsgBlock + GenesisHash *chainhash.Hash + HDCoinType uint32 + HDPrivateKeyID [4]byte + HDPublicKeyID [4]byte + MinDiffReductionTime time.Duration + MinerConfirmationWindow uint32 + Name string + Net wire.BitcoinNet + PowLimit *big.Int + PowLimitBits uint32 + PrivateKeyID byte + PubKeyHashAddrID byte + ReduceMinDifficulty bool + RelayNonStdTxs bool + RetargetAdjustmentFactor int64 + RuleChangeActivationThreshold uint32 + ScriptHashAddrID byte + SubsidyReductionInterval int32 + TargetTimePerBlock time.Duration + TargetTimespan time.Duration + WitnessPubKeyHashAddrID byte + WitnessScriptHashAddrID byte + func CustomSignetParams(challenge []byte, dnsSeeds []DNSSeed) Params