Documentation ¶
Index ¶
Constants ¶
const Len = 32
Variables ¶
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
func DivHash ¶
DivHash is a hash function that combines the use of very large integer multiplication and division in addition to Blake3 hashes to create extremely large integers that cannot be produced without performing these very time expensive iterative long division steps.
This hash function has an operation time proportional to the size of the input. As such, applications using this function must use a repetition parameter fit for the duration delay sought in the application.
This hash function will have a relatively flat difference in performance proportional to the integer long division unit in the processor. Because this unit is the most complex, and the operation is the most non-optimisable integer mathematics function this forms the basis of the fairest possible proof of work function that places miners on the flattest playing field possible and pits their use of this hardware against almost all computer systems applications in market competition, keeping the growth of hashrate constrained. Long division performance is almost linearly proportional to transistor count, which is almost linearly proportional to relative cost.
func ScryptHash ¶
ScryptHash takes bytes and returns a scrypt 256 bit hash
Types ¶
This section is empty.