This repository has been archived by the owner on May 26, 2022. It is now read-only.
Erronous namespace to CID encoding #10
Labels
kind/bug
A bug in existing code (including security flaws)
While researching a bug, I discovered that the conversion of namespace to CID in
nsToCID
is completely erroneous.It uses
mh.Encode([]byte(ns), mh.SHA2_256)
instead ofmh.Sum(...)
which constructs an invalid multihash.The text was updated successfully, but these errors were encountered: