mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-10 17:33:09 +00:00
adds multicodec for SHA1 and for torrent info hash
This commit is contained in:
parent
ca869f6dce
commit
76c938433e
@ -36,6 +36,7 @@ const
|
||||
DefaultSamplesNum* = 5
|
||||
|
||||
# hashes
|
||||
Sha1HashCodec* = multiCodec("sha1")
|
||||
Sha256HashCodec* = multiCodec("sha2-256")
|
||||
Sha512HashCodec* = multiCodec("sha2-512")
|
||||
Pos2Bn128SpngCodec* = multiCodec("poseidon2-alt_bn_128-sponge-r2")
|
||||
@ -55,6 +56,9 @@ const
|
||||
CodexSlotCellCodec,
|
||||
]
|
||||
|
||||
# BitTorrent
|
||||
InfoHashV1Codec* = multiCodec("torrent-info-hash-v1")
|
||||
|
||||
proc initEmptyCidTable(): ?!Table[(CidVersion, MultiCodec, MultiCodec), Cid] =
|
||||
## Initialize padding blocks table
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user