registration

package
v0.0.0-...-a44c12d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HashLength = 32
View Source
const N = 32 * 1024

Variables

View Source
var G = &pt_t{GXMONT, GYMONT, ZERO}
View Source
var GXMONT = mySetBig("0x26b1948aba4465c168faeb79586c8022afdf98edf532bd9d62ce90cd019391e5")

Dero's G1

View Source
var GYMONT = mySetBig("0x24c3da4404b3a717f30e6db01e4ef1d4cea805087c00ad93893ab6f1e1aa1f4e")
View Source
var NO = mySetBig("0x73f82f1d0d8341b2e39a9828990623916586864b4c6911b3c2e1f593efffffff")
View Source
var NP = mySetBig("0xf57a22b791888c6bd8afcbd01833da809ede7d651eca6ac987d20782e4866389")
View Source
var O = mySetBig("0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001")
View Source
var ONE = mySetBig("1")
View Source
var OR = mySetBig("0x54a47462623a04a7ab074a58680730147144852009e880ae620703a6be1de925")
View Source
var OR2 = mySetBig("0x0216d0b17f4e44a58c49833d53bb808553fe3ab1e35c59e31bb8e645ae216da7")
View Source
var P = mySetBig("21888242871839275222246405745257275088696311157297823662689037894645226208583")

Dero's field

View Source
var R2 = mySetBig("0x06d89f71cab8351f47ab1eff0a417ff6b5e71911d44501fbf32cfc5b538afa89")
View Source
var ZERO = mySetBig("0")

Functions

func HashtoNumber

func HashtoNumber(input []byte) *big.Int

Types

type FastReg

type FastReg struct {
	Running bool
	OnFound func(tx *transaction.Transaction, secret *big.Int)
	// contains filtered or unexported fields
}

func NewFastReg

func NewFastReg() *FastReg

func (*FastReg) HashCount

func (s *FastReg) HashCount() uint64

func (*FastReg) HashRate

func (s *FastReg) HashRate() uint64

func (*FastReg) Start

func (s *FastReg) Start(workers int)

func (*FastReg) Stop

func (s *FastReg) Stop()

type Hash

type Hash [HashLength]byte

func GetHash

func GetHash(tx *transaction.Transaction) (result Hash)

type NormalReg

type NormalReg struct {
	Running bool
	OnFound func(tx *transaction.Transaction)
	// contains filtered or unexported fields
}

func NewNormalReg

func NewNormalReg() *NormalReg

func (*NormalReg) HashCount

func (s *NormalReg) HashCount() uint64

func (*NormalReg) HashRate

func (s *NormalReg) HashRate() uint64

func (*NormalReg) Start

func (s *NormalReg) Start(workers int, wallet *walletapi.Wallet_Disk)

func (*NormalReg) Stop

func (s *NormalReg) Stop()

Jump to

Keyboard shortcuts

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