mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-10 05:04:01 +00:00
13 lines
274 B
Nim
13 lines
274 B
Nim
import nimcrypto, hashes, byteutils, eth_types
|
|
|
|
proc hash*(d: MDigest): Hash {.inline.} = hash(d.data)
|
|
|
|
proc parseAddress*(hexString: string): EthAddress =
|
|
hexToPaddedByteArray[20](hexString)
|
|
|
|
proc `$`*(a: EthAddress): string =
|
|
a.toHex()
|
|
|
|
var nimbusStats*: NimbusStats
|
|
|