Welcome to the Developer Q&A for the MultiChain blockchain platform.

Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.

Stream Salted

+2 votes
How to use this feature?
asked Jul 13, 2022 by eskiesirius

1 Answer

0 votes

Create the stream as follows (assuming multichain-cli on Linux):

create stream [stream-name] '{"restrict":"onchain", "salted":true}'

This will ensure all data is published off-chain, and that every hash is salted. If you also want to make the stream write-restricted, substitute this in the appropriate place:


answered Jul 13, 2022 by MultiChain
oh i see.. may i know what is the purpose of adding salt?
It means the on-chain hash for the stream item data reveals no information at all, not even the fact that two items have identical data.