progpow
Module Contents
alltypes
Module Contents
open
class
EthHash
Module Contents
EthHash
(
)
static
var
ACCESSES
:
Int
static
var
CACHE_BYTES_GROWTH
:
Long
static
var
CACHE_BYTES_INIT
:
Long
static
var
CACHE_MULTIPLIER
:
Int
static
var
CACHE_ROUNDS
:
Int
open
static
fun
calcDatasetItem
(
cache
:
Array
<
UInt32
!
>
!
,
index
:
Int
)
:
Bytes
!
static
var
DATASET_BYTES_GROWTH
:
Long
static
var
DATASET_BYTES_INIT
:
Long
static
var
DATASET_PARENTS
:
Int
open
static
fun
epoch
(
block
:
Long
)
:
Long
static
var
EPOCH_LENGTH
:
Int
static
var
FNV_PRIME
:
Int
open
static
fun
getCacheSize
(
block_number
:
Long
)
:
Int
open
static
fun
getFullSize
(
block_number
:
Long
)
:
Long
static
var
HASH_BYTES
:
Int
static
var
MIX_BYTES
:
Int
open
static
fun
mkCache
(
cacheSize
:
Int
,
block
:
Long
)
:
Array
<
UInt32
!
>
!
static
var
WORD_BYTES
:
Int
class
ProgPoW
Module Contents
ProgPoW
(
)
static
fun
createDagCache
(
blockNumber
:
Long
,
datasetLookup
:
Function
<
Int
!
,
Bytes
!
>
!
)
:
Array
<
UInt32
!
>
!
static
fun
progPowHash
(
blockNumber
:
Long
,
nonce
:
Long
,
header
:
Bytes32
!
,
dag
:
Array
<
UInt32
!
>
!
,
dagLookupFunction
:
Function
<
Int
!
,
Bytes
!
>
!
)
:
Bytes32
!
package
org.apache.tuweni.ethash
Module Contents
open
class
EthHash
Module Contents
EthHash
(
)
static
var
ACCESSES
:
Int
static
var
CACHE_BYTES_GROWTH
:
Long
static
var
CACHE_BYTES_INIT
:
Long
static
var
CACHE_MULTIPLIER
:
Int
static
var
CACHE_ROUNDS
:
Int
open
static
fun
calcDatasetItem
(
cache
:
Array
<
UInt32
!
>
!
,
index
:
Int
)
:
Bytes
!
static
var
DATASET_BYTES_GROWTH
:
Long
static
var
DATASET_BYTES_INIT
:
Long
static
var
DATASET_PARENTS
:
Int
open
static
fun
epoch
(
block
:
Long
)
:
Long
static
var
EPOCH_LENGTH
:
Int
static
var
FNV_PRIME
:
Int
open
static
fun
getCacheSize
(
block_number
:
Long
)
:
Int
open
static
fun
getFullSize
(
block_number
:
Long
)
:
Long
static
var
HASH_BYTES
:
Int
static
var
MIX_BYTES
:
Int
open
static
fun
mkCache
(
cacheSize
:
Int
,
block
:
Long
)
:
Array
<
UInt32
!
>
!
static
var
WORD_BYTES
:
Int
package
org.apache.tuweni.progpow
Module Contents
class
ProgPoW
Module Contents
ProgPoW
(
)
static
fun
createDagCache
(
blockNumber
:
Long
,
datasetLookup
:
Function
<
Int
!
,
Bytes
!
>
!
)
:
Array
<
UInt32
!
>
!
static
fun
progPowHash
(
blockNumber
:
Long
,
nonce
:
Long
,
header
:
Bytes32
!
,
dag
:
Array
<
UInt32
!
>
!
,
dagLookupFunction
:
Function
<
Int
!
,
Bytes
!
>
!
)
:
Bytes32
!