tighten a few imports

This commit is contained in:
Jacek Sieka 2019-12-09 12:08:42 +01:00 committed by zah
parent 9165ff8549
commit 4c6878343c
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import stint, nimcrypto
import stint, nimcrypto/[keccak, hash]
type UInt2048 = StUint[2048]

View File

@ -1,6 +1,6 @@
import
endians, options, times, chronicles,
stint, nimcrypto, eth/rlp, eth/trie/[trie_defs, db]
stint, nimcrypto/[keccak, hash], eth/rlp, eth/trie/[trie_defs, db]
export
stint, read, append, KeccakHash

View File

@ -1,5 +1,5 @@
import
eth/[common, rlp, keys], nimcrypto
eth/[common, rlp, keys], nimcrypto/keccak
proc initTransaction*(nonce: AccountNonce, gasPrice, gasLimit: GasInt, to: EthAddress,
value: UInt256, payload: Blob, V: byte, R, S: UInt256, isContractCreation = false): Transaction =

View File

@ -1,4 +1,4 @@
import nimcrypto, hashes, stew/byteutils, eth_types, metrics
import nimcrypto/hash, hashes, stew/byteutils, eth_types, metrics
export metrics

View File

@ -10,7 +10,7 @@
## This module implements ECIES method encryption/decryption.
import eth/keys, nimcrypto
import eth/keys, nimcrypto/[rijndael, bcmode, hash, hmac, sysrand, sha2, utils]
const
emptyMac* = array[0, byte]([])

View File

@ -29,7 +29,7 @@
# doAssert crypto.ecdsa_recover(msghash, sig) == pubkey
# """
import nimcrypto
import nimcrypto/keccak
type
testKeySig* = object