puzzle

package
v1.5.21 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 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
	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