You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2022. It is now read-only.
Any idea how to make this work with react native? I tried node-libs-react-native and rn-nodeify to supply the necessary node libraries but I can't source Block via import {Block} from '@ipld/block'
and then calling it like solet block = Block.encoder({hello: 'world'}, 'dag-cbor'); to work: TypeError: undefined is not an object (evaluating '_block.Block.encoder')
Though if I implement it like so I get a dif undefined error:
const Block = require('@ipld/block');
let block = Block.encoder({hello: 'world'}, 'dag-cbor');
let cid = await block.cid()
console.log(cid);
gives: TypeError: undefined is not an object (evaluating 'crypto.subtle.digest')