How to use Stream to Store Data

+2 votes
I am using multichain's stream as a proof of concept that blockchain works. This implementation simply stores Office addresses.

1. Every address record has a unique identifier.

2. Each address needs to be stored against the identifier associated with the address.

3. When the address changes in the real world, the new address needs to be stored against the identifier again.

4. A query can be issued to with the key to retrieve all the address that have been stored against the identifier.

 

I have tried creating a stream with the command below but i don't understand what json part does and how to go about this implementation. Any pointer please.

 

create stream stream1 true '{"key1":"value1","key2","value2"}'
asked Oct 17, 2017 by anonymous

1 Answer

+1 vote
Creating a stream and publishing information into that stream are two separate activities.

Please follow this tutorial to get a sense for how it works:

https://www.multichain.com/getting-started/

You can skip sections 4 and 5 which focus on assets.
answered Oct 17, 2017 by MultiChain
...