codec property

Multicodec get codec

Returns the multicodec of this CID.

Implementation

Multicodec get codec => Multicodec.valueOf(bytes[2]);