2018-03-02 10:57:43 +00:00
|
|
|
# Nim Eth-keys
|
|
|
|
# Copyright 2018 Status Research & Development GmbH
|
|
|
|
# Licensed under either of
|
|
|
|
#
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
|
|
#
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
2018-02-14 19:40:05 +00:00
|
|
|
|
|
|
|
when defined(backend_native):
|
|
|
|
echo "\nBackend tested: native\n"
|
2018-03-21 15:45:39 +00:00
|
|
|
when defined(c):
|
|
|
|
{.fatal: "The native backend require C++ compilation for ttmath.}".}
|
2018-02-14 19:40:05 +00:00
|
|
|
else:
|
|
|
|
echo "\nBackend tested: libsecp256k1\n"
|
2018-03-21 15:45:39 +00:00
|
|
|
when not defined(cpp):
|
|
|
|
echo "C backend chosen. Skipping ttmath_hex_bytes_conversion test"
|
2018-02-14 19:40:05 +00:00
|
|
|
|
2018-03-21 15:45:39 +00:00
|
|
|
when defined(cpp):
|
|
|
|
import ./test_ttmath_hex_bytes_conversion
|
|
|
|
|
|
|
|
import ./test_private_public_key_consistency,
|
2018-02-14 18:50:36 +00:00
|
|
|
./test_key_and_signature_datastructures
|