tuweni / org.apache.tuweni.progpow / ProgPoW / progPowHash

progPowHash

static fun progPowHash(blockNumber: Long, nonce: Long, header: Bytes32!, dag: Array<UInt32!>!, dagLookupFunction: Function<UInt32!, Bytes!>!): Bytes32! (source)

Creates a hash using the ProgPoW formulation of a block

Parameters

blockNumber - Long: the block number of the block

nonce - Long: the nonce of the block

header - Bytes32!: the header of the block

dag - Array<UInt32!>!: the directed acyclic graph cache

dagLookupFunction - Function<UInt32!, Bytes!>!: the function to append to the DAG

Return
Bytes32!: a hash matching the block input, using the ProgPoW algorithm