{"action":"closed","issue":{"url":"https://api.github.com/repos/chainside/btcpy/issues/40","repository_url":"https://api.github.com/repos/chainside/btcpy","labels_url":"https://api.github.com/repos/chainside/btcpy/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/chainside/btcpy/issues/40/comments","events_url":"https://api.github.com/repos/chainside/btcpy/issues/40/events","html_url":"https://github.com/chainside/btcpy/issues/40","id":330922318,"node_id":"MDU6SXNzdWUzMzA5MjIzMTg=","number":40,"title":"Different address from which I need","user":{"login":"impowski","id":6883168,"node_id":"MDQ6VXNlcjY4ODMxNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/6883168?v=4","gravatar_id":"","url":"https://api.github.com/users/impowski","html_url":"https://github.com/impowski","followers_url":"https://api.github.com/users/impowski/followers","following_url":"https://api.github.com/users/impowski/following{/other_user}","gists_url":"https://api.github.com/users/impowski/gists{/gist_id}","starred_url":"https://api.github.com/users/impowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impowski/subscriptions","organizations_url":"https://api.github.com/users/impowski/orgs","repos_url":"https://api.github.com/users/impowski/repos","events_url":"https://api.github.com/users/impowski/events{/privacy}","received_events_url":"https://api.github.com/users/impowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-09T22:01:07Z","updated_at":"2018-06-10T19:16:00Z","closed_at":"2018-06-10T19:16:00Z","author_association":"NONE","body":"Here is the address which I need `2N2qWuN9rpfw4DvPqjJ3SD1adNnmZdeM5NU` (testnet)\r\n\r\nHere is what I do to get it:\r\n```\r\ndef p2sh_address(pub_key_1, pub_key_2):\r\n    pub_key_hash_1 = pub_key_1.hash()\r\n    pub_key_hash_2 = pub_key_2.hash()\r\n\r\n    multisig_script = MultisigScript(2, pub_key_1, pub_key_2, 2)\r\n    return (multisig_script, P2shAddress.from_script(multisig_script))\r\n```\r\n\r\nHere is the redeem script hex which I got:\r\n`\r\n5221020d2036fea368d0400acabe96e975b6f4e24c6f40f2e45db4264c2f117702c1e72102d0b84f4a3d4890b2fdde4dc74db4328fb3504e0247187d8286311c75b3b6bdeb52ae\r\n`\r\nIt's the same as on the block.io\r\n\r\nHere is the address which I got from `from_script`:\r\n`2N7tpkpBJPmv2BD37eTXDUJJzhpXEoyyNU9`\r\n\r\nAm I doing something wrong or it should be like that?"}}
{"actor":{"display_login":"impowski"}}