I want to store a list of IPFS hash on a smart contract's function exposing a bytes32[] array.
I'm using web3.js and Solidity.
I have used multi-hash and/or some examples using bs58, but the value I retrieved and converted from the smart contract gives me a hash different from IPFS.
Do you any tips to share with me?
Thanks
Said
Best Answer
Ok, I got it thanks to this great sample: https://bitbucket.org/edmundedgar/realitycheck/src/3ec966f1cf253c59caa224ee0e8e0e0d1037741d/assets/js/scripts/main.js?at=master&fileviewer=file-view-default#main.js-407
I have used these functions and was able to store/retrieve my IPFS hash to/from bytes32 Solidity data type: