lotusCid
function lotusCid(data: Uint8Array<ArrayBufferLike>): Uint8Array<ArrayBuffer>;
Defined in: packages/iso-filecoin/src/utils.js:310
Create a Lotus CID from a BufferSource
Parameters
Parameter | Type |
---|---|
data | Uint8Array <ArrayBufferLike > |
Returns
Example
import { lotusCid } from 'iso-filecoin/utils'
const data = new Uint8Array([1, 2, 3])const cid = lotusCid(data)