Stream confidentiality error

+1 vote

I have setup my chain as per the online guide (http://www.multichain.com/developers/stream-confidentiality/) lines however i am getting an error when i get about 50% of the way into this guide using this command:

Now we can publish this large chunk of hexadecimal data to the items stream:

multichain-cli ITB-Chain publishfrom 1PD2igfeiK7VyudMeiaR1q41fkV7V64g22qpPf items secret-cpuinfo $cipherhex

Everything has ran smoothly up until this point

 

on server 1:

root@BlockchainMaster-Node1:/# multichain-cli XXX-Chain publishfrom 1PD2igfeiK7VyudMeiaR1q41fkV7V64g22qpPf items secret-cpuinfo $cipherhex
{"method":"publishfrom","params":["1PD2igfeiK7VyudMeiaR1q41fkV7V64g22qpPf","items","secret-cpuinfo"],"id":1,"chain_name":"ITB-Chain"}

error code: -1
error message:
publishfrom from-address "stream-identifier" "key" data-hex

Publishes stream item


Arguments:
1. from-address          (string, required) Address used for issuing.
2. "stream-identifier" (string, required) Stream identifier - one of the following: stream txid, stream reference, stream name.
3. "key"               (string, required) Item key
4. data-hex              (string, required) Item data hex string

Result:
"transactionid"  (string) The transaction id.

Examples:
> multichain-cli XXX-Chain publishfrom "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" test "hello world" 48656C6C6F20576F726C64210A
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "XXX-Chain publishfrom", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", "test", "hello world", "48656C6C6F20576F726C64210A"] }' -H 'content-type: text/plain;' http://127.0.0.1:4402

 

On server 2:

root@BlockchainMaster-Node2:~# multichain-cli XXX-Chain publishfrom 1PD2igfeiK7VyudMeiaR1q41fkV7V64g22qpPf items secret-cpuinfo $cipherhex{"method":"publishfrom","params":["1PD2igfeiK7VyudMeiaR1q41fkV7V64g22qpPf","items","secret-cpuinfo","53616c7465645f5fcbff0c1af75f4a8fddfe08551315f180bb46bd918e892592c3a0e1ca406fe7de0f63659e8f7d9ff7bf18db723bdd90c20a43637735f25541e8d0aba227925d091c03b8c7ca89498f6526c69651d5083a4bb8884b4627575246370ce6742ad6c0d1587ea0b02f4c88881e8344acd5ab44f6ccb4d585192582203cba70cd2e6d49dd1d5666cc6f474b2d7a48601ff383cf209ed53b8a4ab08912c4264310dbb2191cefcbdb260d21732429de525ce74ebf0d4a75dc0553132da2eb95a1cbb64608d1028c53e0b29891011025496e5103629763627d4a57246bb1a5237031e2f118a93ec46717cbcdc1c697251dbdcbcf1b3b3b84e6e78719af3ff0d64df7ffe229227b88bf49b5aaaf21ee26395d898a9b5a5b7c4de16aa3be17f69a71ff8ddf01a9cef69605d070234dbea452738c712c2fd810d7f55bb6836acb966e45a684481ceebf53baa869b5294abb52333bdfe18b014c1d7dd94b6b56808e403337846730199adf5659facce60979027428969a7c6ed84237a9cfc61245a0663b8c88b8c64acd0ccf3617ff42454135277bde7a36e0682702863cbd7af58beea0d71bf574ee4b1c36cbcba0bf3d0de5ee108ed1fcb984dd15a01fe5b31690b013bc3c5095da922ddcb3c00d39650fee0890e2d41f75d7a197e670e993fed4525b28259b73f838e5b31cd5a77cd9238de32c46c4020bf5e9afbaed5adf9f27fd1baea2b1281f3574c7990d42b52671ca2e9a236b92459a1c136c21109aefb09ba15dcd4e90a9ffd08f42f195c58b000bcec0e438a87cbfb551bfa930475de56a2463b6fecf73e9d0be15fe29d4f9059784ca4163fcf14df370bf01e8845abf2bf23b23a410569d8e803dbb552ce9180ef5d80c54a90f790366bc58c37eb9a43296dadcc8610e47ca58bed30fd23b1956d5ff5b7a3d7643fc7d22434c9287d558cda37ac091bfcff927cefe3d6b5f1e65b7549e6cb3738d79da8e112ca1a07f10989992b5a4556698d777881b181932c20862c85f4e4d8418bf435cb1f5e14d768695261b73319f750f87b2e781f56dea96e87b70b822f2aa7349b51a8d2e7bb987562e7792c7eaa7ad9fd4ef5647058d9aed2c08818a405a6ee105de6f5791a4dfffbe69b2cfe9419c55041df518a33030f43fb5e3b39c5fb9e26164dcb7409b46b841e26a09807b7540bb47d1f7ef052657eb1f12d855fd343b9ac7"],"id":1,"chain_name":"XXX-Chain"}

error code: -709
error message:
Private key for from-address is not found in this wallet

 

 

Im stuck as everything was going so well up to this point :/

 

asked Apr 4, 2017 by Dylan

1 Answer

0 votes

These seem to be two different problems. For server 1, looking at the JSON-API request payload, it appears that the $cipherhex shell variable is not being expanded. This could be because you're not running on the bash shell, or because something failed earlier in setting that variable. For server 2, you're trying to publish from an address that doesn't belong to that node. But in any event the tutorial says you should only be running this on the second server, so I'm not sure why you're trying it on the first?

answered Apr 5, 2017 by MultiChain
...