I can retrieve the root hash for the /bytes endpoint like this:
const data = new Uint8Array(fs.readFileSync("/some/file.txt"))
const chunkedFile = BmtJS.makeChunkedFile(data)
const rootChunk = chunkedFile.rootChunk()
const hash = Buffer.from(rootChunk.address()).toString("hex")
but if I wanted to upload that file to /bzz how can I get the correct hash?