Versions in this module Expand all Collapse all v2 v2.0.1 Sep 29, 2020 Changes in this version + type HashFunction func([]byte) []byte + type NonceGenerator func(int) ([]byte, error) + type Pow struct + Check bool + Difficulty int + Hash HashFunction + NonceGenerator NonceGenerator + NonceLength int + Secret []byte + func New(config *Pow) *Pow + func (p *Pow) GenerateNonce() (nonce []byte, checksum []byte, err error) + func (p *Pow) VerifyDifficulty(hash []byte) bool + func (p *Pow) VerifyHash(nonce []byte, data []byte, hash []byte, nonceSig []byte) (bool, error) + func (p *Pow) VerifyHashAtDifficulty(nonce []byte, data []byte, hash []byte, nonceSig []byte) (bool, error) Other modules containing this package github.com/jeongy-cho/go-pow