mining

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinerNum = 1

	Difficult uint32
	PayLoad   []byte
)
View Source
var (
	PrivateKey    = ""
	MintAssetName = ""
)

Functions

func StartMining

func StartMining()

Types

type Miner

type Miner struct{}

type PowPayload

type PowPayload struct {
	Version  uint32
	TxHash   string
	Reserved [44]byte
	NBits    uint32
	Nonce    uint64
}

func (*PowPayload) Pack added in v0.1.2

func (p *PowPayload) Pack() ([]byte, error)

func (*PowPayload) PackLittle added in v0.1.2

func (p *PowPayload) PackLittle() ([]byte, error)

Jump to

Keyboard shortcuts

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