pow

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoW

type PoW interface {
	Challenge() ([]byte, error)
	Verify(challenge, nonce []byte, complexity uint8) error
}

type Svc

type Svc struct {
	// contains filtered or unexported fields
}

func New

func New(hFn hashcash.HashFunc) *Svc

func (Svc) Challenge

func (s Svc) Challenge() ([]byte, error)

func (*Svc) Verify

func (s *Svc) Verify(challenge, nonce []byte, c uint8) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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