mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 22:06:21 +00:00
e5047d93a4
* Change digests to SHA2-256 (from Keccak256) * Fix sha256 digest initialization - pass shuffling test * Add comments + remove old shuffling tests * Remove stale tree hashing tests * Small toOpenArray optim + notes on in-place hashing * Revert "Revert "Update test repo"" This reverts commit f385467cd3312058ec0ccf70be83e80f400a41c5. * Revert "Revert "Fix SIGFPE on shuffling for 0"" This reverts commit 226d380f8733663c033edee94fdd8427c4ddb2a5. * Revert "Revert "Implement shuffling test (pending typedesc and shuffling algo fix)"" This reverts commit 813cb6fbb8cdbb768a894c35173c3adc1e5d6c59. * withEth2hash templates now needs ctx.init() * Use init-update-finish to avoid burnMem
15 lines
610 B
Nim
15 lines
610 B
Nim
# Copyright (c) 2018 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
import
|
|
math, unittest, sequtils, testutil,
|
|
../beacon_chain/spec/[helpers, datatypes, digest, validator, beaconstate],
|
|
../beacon_chain/extras
|
|
|
|
suite "Validators":
|
|
# TODO: Empty!
|
|
discard
|