common

package
v0.0.0-...-bc7c564 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCompact

func ToCompact(value *big.Int) uint32

Types

type TargetBase

type TargetBase interface {
	GetCompact() uint32
	Get() *big.Int
	GetDifficulty() *big.Int
	Check(pow []byte) bool
	Equal(other TargetBase) bool

	utils.Serializable
}

func NewTarget

func NewTarget(compact uint32) TargetBase

type Version

type Version struct {
	Major uint16
	Minor uint16
}

Jump to

Keyboard shortcuts

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