Documentation ¶ Index ¶ func Verify(hash string, zerosCount int) bool type HashCashData func (h HashCashData) Compute(maxIterations int) (string, error) type POW Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Verify ¶ func Verify(hash string, zerosCount int) bool Types ¶ type HashCashData ¶ type HashCashData struct { Version int `json:"version"` ZerosCount int `json:"zerosCount"` Date int64 `json:"s_date"` Resource string `json:"resource"` Rand string `json:"rand"` Counter int `json:"counter"` } func (HashCashData) Compute ¶ func (h HashCashData) Compute(maxIterations int) (string, error) type POW ¶ type POW interface { Check() bool // Check - checks that hash has leading <zerosCount> zeros Compute() (string, error) // Compute - bruteforce calculation correct POW } Source Files ¶ View all Source files hash_cash.go pow.go Click to show internal directories. Click to hide internal directories.