Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw on CID.parse v0 string with multibase prefix
Add a check to CID.parse to throw on a CID v0 string with explict multibase, e.g. `zQmPr755CxWUwt39C2Yiw4UGKrv16uZhSgeZJmoHUUS9TSJ` We're seeing pinning service requests comming in from the wild with the undesriable multibase prefix, and the expectation was that CID.parse would have thrown and spared us from having to deal with them. Fixes: multiformats#240 See also: ipfs/kubo#9556 License: MIT Signed-off-by: Oli Evans <[email protected]>
- Loading branch information