is there an API for hashing data?

+1 vote
Hi, I need to load some data on stream and need to hash it before adding. Is there an API to hash the data before loading onto stream??

Or do I need to call pycrypto modules for this separately?
asked Sep 12, 2017 by Garvit Goel

2 Answers

0 votes
Best answer
MultiChain doesn't currently provide a hashing API, but even if it did, it would be more efficient for you to hash the data inside your programming language before passing the resulting hash to MultiChain for publishing in a stream. So yes, you should use the Python crypto modules.
answered Sep 12, 2017 by MultiChain
+1 vote
If you are working with multichain web demo or extending that project you can also use PHP hash functionalities before passing to Multichain :)
answered Sep 13, 2017 by puneet