{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/1177","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1177/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1177/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1177/events","html_url":"https://github.com/trufflesuite/truffle/issues/1177","id":349148078,"node_id":"MDU6SXNzdWUzNDkxNDgwNzg=","number":1177,"title":"How to use {privateFor:['...']} in truffle-contract package (Quorum)","user":{"login":"karapish","id":9142734,"node_id":"MDQ6VXNlcjkxNDI3MzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9142734?v=4","gravatar_id":"","url":"https://api.github.com/users/karapish","html_url":"https://github.com/karapish","followers_url":"https://api.github.com/users/karapish/followers","following_url":"https://api.github.com/users/karapish/following{/other_user}","gists_url":"https://api.github.com/users/karapish/gists{/gist_id}","starred_url":"https://api.github.com/users/karapish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karapish/subscriptions","organizations_url":"https://api.github.com/users/karapish/orgs","repos_url":"https://api.github.com/users/karapish/repos","events_url":"https://api.github.com/users/karapish/events{/privacy}","received_events_url":"https://api.github.com/users/karapish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-09T14:17:22Z","updated_at":"2018-08-09T19:25:39Z","closed_at":null,"author_association":"NONE","body":"Truffle deployment scripts can gracefully deploy private contracts and issue **private** transactions. I would like to reference truffle-contract npm package in my nodejs service to emit private transactions as well. Unfortunately, I am getting errors while invoking a function of my private contract, e.g. myContract.myFunc(params, {privateFor:['..']}). I can't find any example here explaining how to use privateFor option properly. Please advise "},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/411869178","html_url":"https://github.com/trufflesuite/truffle/issues/1177#issuecomment-411869178","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1177","id":411869178,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg2OTE3OA==","user":{"login":"karapish","id":9142734,"node_id":"MDQ6VXNlcjkxNDI3MzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9142734?v=4","gravatar_id":"","url":"https://api.github.com/users/karapish","html_url":"https://github.com/karapish","followers_url":"https://api.github.com/users/karapish/followers","following_url":"https://api.github.com/users/karapish/following{/other_user}","gists_url":"https://api.github.com/users/karapish/gists{/gist_id}","starred_url":"https://api.github.com/users/karapish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karapish/subscriptions","organizations_url":"https://api.github.com/users/karapish/orgs","repos_url":"https://api.github.com/users/karapish/repos","events_url":"https://api.github.com/users/karapish/events{/privacy}","received_events_url":"https://api.github.com/users/karapish/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T19:25:39Z","updated_at":"2018-08-09T19:25:39Z","author_association":"NONE","body":"I can share truffle.js but my deployment works absolutely fine. I can successfully call \r\nmyContractInstance.myFunction(10, {privateFor:[\"key of node at port 22001\"])}; \r\n\r\nmodule.exports = {\r\n  // See <http://truffleframework.com/docs/advanced/configuration>\r\n  // to customize your Truffle configuration!\r\n  networks: {\r\n    development: {\r\n      host: \"127.0.0.1\",\r\n      port: 9545,\r\n      network_id: \"*\"\r\n    },\r\n    ganache: {\r\n      host: \"127.0.0.1\",\r\n      port: 7545,\r\n      network_id: \"*\"\r\n    },\r\n    node1: {\r\n        host: \"127.0.0.1\",\r\n        port: 22000, // was 8545\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    node2:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22001,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    node3:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22002,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    node4:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22003,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    node5:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22004,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    node6:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22005,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    },\r\n    X:  {\r\n        host: \"127.0.0.1\",\r\n        port: 22006,\r\n        network_id: \"*\", // Match any network id\r\n        gasPrice: 0,\r\n        gas: 4500000\r\n    }\r\n  }};"}}
{"actor":{"display_login":"karapish"}}