使用 [ReedSolomon JavaScript Library][1] 擦除本地文件的代码,它给了我以下错误:
shardSize 5432
bufferoffset 0
bufferSize 5432
paritysize 10864
sources 3
targets 12
/Users/nidhisharma/client-sdk/Node/0chain_sdk/encode.js:56
var rs = ReedSolomon.encode(
^
Error: shardSize % 8 != 0
at fileinfo (/Users/XYZ/CS/encode.js:56:23)
at Object.<anonymous> (/Users/XYZ/CS//client.js:6:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:279:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
但是 Shard Size 是 5432。我不确定这里缺少什么并造成麻烦,请指导。