How to create an IPFS compatible multihash
I'm trying to create an IPFS compatible mutihash but it is not matching. I am asking here because I have not yet found an example that takes this from hashing to the end result. echo -n multihash > multihash.txt ipfs add multihash.txt added QmZLXzjiZU39eN8QirMZ2CGXjMLiuEkQriRu7a7FeSB4fg multihash.txt sha256sum multihash.txt 9cbc07c3f991725836a3aa2a581ca2029198aa420b9d99bc0e131d9f3e2cbe47 multihash.txt node > var bs58=require('bs58') bs58.encode(new Buffer('9cbc07c3f991725836a3aa2a581ca2029198aa420b9d99bc0e131d9f3e2cbe47','hex')) 'BYptxaTgpcBrqZx9tghNCWFfUuYBcGfLydEvDjXqBV7k' > var mh=require(