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
static
var
DATASET_BYTES_GROWTH
:
Long
static
var
DATASET_BYTES_INIT
:
Long
static
var
DATASET_PARENTS
:
Int
static
var
EPOCH_LENGTH
:
Int
static
var
FNV_PRIME
:
Int
static
var
HASH_BYTES
:
Int
static
var
MIX_BYTES
:
Int
static
var
WORD_BYTES
:
Int
open
static
fun
calcDatasetItem
(
cache
:
Array
<
UInt32
>
,
index
:
Int
)
:
Bytes
open
static
fun
epoch
(
block
:
Long
)
:
Long
open
static
fun
getCacheSize
(
block_number
:
Long
)
:
Int
open
static
fun
getFullSize
(
block_number
:
Long
)
:
Long
open
static
fun
mkCache
(
cacheSize
:
Int
,
block
:
Long
)
:
Array
<
UInt32
>
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
static
var
DATASET_BYTES_GROWTH
:
Long
static
var
DATASET_BYTES_INIT
:
Long
static
var
DATASET_PARENTS
:
Int
static
var
EPOCH_LENGTH
:
Int
static
var
FNV_PRIME
:
Int
static
var
HASH_BYTES
:
Int
static
var
MIX_BYTES
:
Int
static
var
WORD_BYTES
:
Int
open
static
fun
calcDatasetItem
(
cache
:
Array
<
UInt32
>
,
index
:
Int
)
:
Bytes
open
static
fun
epoch
(
block
:
Long
)
:
Long
open
static
fun
getCacheSize
(
block_number
:
Long
)
:
Int
open
static
fun
getFullSize
(
block_number
:
Long
)
:
Long
open
static
fun
mkCache
(
cacheSize
:
Int
,
block
:
Long
)
:
Array
<
UInt32
>
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