exported the right overloads for serializing hashes properly to json (and not as byte arrays)

This commit is contained in:
Viktor Kirilov 2020-04-22 16:13:05 +03:00 committed by zah
parent f3d0ae35f6
commit 1575ded589
1 changed files with 3 additions and 2 deletions

View File

@ -25,10 +25,11 @@ import
chronicles,
nimcrypto/[sha2, hash],
stew/byteutils,
hashes
hashes,
eth/common/eth_types_json_serialization
export
hash.`$`, sha2
hash.`$`, sha2, writeValue, readValue
type
Eth2Digest* = MDigest[32 * 8] ## `hash32` from spec