tuweni / org.apache.tuweni.ethash / EthHash / hashimotoLight

hashimotoLight

open static fun hashimotoLight(size: Long, cache: Array<UInt32!>!, header: Bytes!, nonce: Bytes!): Bytes! (source)

Hashimoto Light Hashing.

Parameters

size - Long: the size of the full data set

cache - Array<UInt32!>!: EthHash Cache

header - Bytes!: Truncated BlockHeader hash

nonce - Bytes!: Nonce to use for hashing

Return
Bytes!: A byte array holding MixHash in its first 32 bytes and the EthHash result in the bytes 32 to 63