mirror of https://github.com/status-im/nim-eth.git
tighten a few imports
This commit is contained in:
parent
9165ff8549
commit
4c6878343c
|
@ -1,4 +1,4 @@
|
|||
import stint, nimcrypto
|
||||
import stint, nimcrypto/[keccak, hash]
|
||||
|
||||
type UInt2048 = StUint[2048]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import nimcrypto, hashes, stew/byteutils, eth_types, metrics
|
||||
import nimcrypto/hash, hashes, stew/byteutils, eth_types, metrics
|
||||
|
||||
export metrics
|
||||
|
||||
|
|
|
@ -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]([])
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
# doAssert crypto.ecdsa_recover(msghash, sig) == pubkey
|
||||
# """
|
||||
|
||||
import nimcrypto
|
||||
import nimcrypto/keccak
|
||||
|
||||
type
|
||||
testKeySig* = object
|
||||
|
|
Loading…
Reference in New Issue