multiformats / js-cid

CID implementation in JavaScript
MIT License
98 stars 39 forks source link

CID as ArrayBufferView #125

Open Gozala opened 3 years ago

Gozala commented 3 years ago

Change CID representation to a glorified ArrayBuffer view (as per multiformats/js-cid#111 & https://github.com/multiformats/js-multiformats/pull/29).

Primary goal here is to make CID a view into ArrayBuffer slice instead of encoding / decoding of bytes. That being said we will still retain API compatibilitiy, meaning encoding / decoding CIDs would still be supported as is.