Documentation
¶
Index ¶
- type Pow
- func (p *Pow) GenerateNonce() ([2]string, error)
- func (p *Pow) VerifyDifficulty(hash string) bool
- func (p *Pow) VerifyHash(nonce string, data string, hash string, nonceSig string) (bool, error)
- func (p *Pow) VerifyHashAtDifficulty(nonce string, data string, hash string, nonceSig string) (bool, error)
- type PowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pow ¶
type Pow struct {
// contains filtered or unexported fields
}
Pow ...
func (*Pow) GenerateNonce ¶
GenerateNonce generates a new nonce, also generates signature if verify enabled
func (*Pow) VerifyDifficulty ¶
VerifyDifficulty verifies hash fulfils difficulty requirement
func (*Pow) VerifyHash ¶
VerifyHash verifies the hash given the nonce and data
Click to show internal directories.
Click to hide internal directories.