mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-19 16:24:25 +00:00
Restores access to hash list from testcid
This commit is contained in:
parent
8df12becc3
commit
2b8db4f9d4
@ -237,7 +237,7 @@ proc poseidon2_merkle_2kb_sponge(data: openArray[byte], output: var openArray[by
|
||||
var digest = poseidon2.SpongeMerkle.digest(data, 2048).toBytes()
|
||||
copyMem(addr output[0], addr digest[0], uint(len(output)))
|
||||
|
||||
const HashesList = [
|
||||
const HashesList* = [
|
||||
MHash(mcodec: multiCodec("identity"), size: 0, coder: identhash),
|
||||
MHash(mcodec: multiCodec("sha1"), size: sha1.sizeDigest, coder: sha1hash),
|
||||
MHash(
|
||||
|
@ -9,12 +9,10 @@
|
||||
# This file may not be copied, modified, or distributed except according to
|
||||
# those terms.
|
||||
|
||||
import std/importutils
|
||||
import unittest2
|
||||
import std/sequtils
|
||||
import ../libp2p/[cid, multihash, multicodec]
|
||||
|
||||
privateAccess(CodeHashes) # enable access to private fields
|
||||
|
||||
const MultiHashCodecsList* = HashesList.mapIt( it.mcodec )
|
||||
|
||||
suite "Content identifier CID test suite":
|
||||
|
Loading…
x
Reference in New Issue
Block a user