puzzle

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package puzzle uses a Proof-of-Work algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPuzzle

type IPuzzle interface {
	ProofBytes([]byte, uint64) uint64
	VerifyBytes([]byte, uint64) bool
}

func NewPoWPuzzle

func NewPoWPuzzle(pDiff uint64) IPuzzle

Jump to

Keyboard shortcuts

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