Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Improve CID validation in Rust #48

@siman

Description

@siman

Don't check for CID length, use cid lib:

https://github.com/multiformats/rust-cid#usage

use cid::Cid;
use std::convert::TryFrom;

let out = Cid::try_from(data).unwrap();
  • Update in pre-2
  • Update in rc4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions