schelling

package
v0.0.0-...-27a570a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeShellingHash

func ComputeShellingHash(wallet string, value int) []byte

func ComputeValidRange

func ComputeValidRange(knownSolutions []int) (min, max int)

func VerifyHash

func VerifyHash(hash []byte, wallet string, solution int) bool

Types

type ShellingSolution

type ShellingSolution struct {
	Value   int
	Address string
}

Jump to

Keyboard shortcuts

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