/cs-cid

Cid implementation

Primary LanguageC#MIT LicenseMIT

ContentIdentifier (cs-cid)

Travis CI AppVeyor NuGet Codecov Libraries.io

CID implementation in C#

Supports v0 and v1 of CIDs.

Table of Contents

Install

PM> Install-Package ContentIdentifier

Usage

// create v0 cid
var cid = new Cid(MultihashValue);
// create v1 cid
var cid = new Cid(CidCodec.DagCBOR, MultihashValue);
// parse
var cid = Cid.Parse(string/byte[]/Multihash/Cid);

License

MIT © 2016 Trond Bråthen