what is "key" in publish command

+1 vote
I am a beginner in Multichain and looking to publish an item in the stream and the example sample command on your guide is:

publish stream1 key1 73747265616d2064617461

key1 is the "key" parameter but what is "key" exactly?? Is it the publicKey of the sender node or pubKey for decrypting the data-hex 73747265616d2064617461
asked Aug 21, 2017 by Vismay

1 Answer

0 votes

It is not connected to 'key' in the sense of private or public keys on the blockchain. This is a 'key' in the sense of a key-value database, and you can choose any string you like. It will appear in any API listing the stream item and can be used to retrieve items from the stream using liststreamkeyitems.

answered Aug 21, 2017 by MultiChain
...