{"action":"closed","issue":{"url":"https://api.github.com/repos/vbuterin/pybitcointools/issues/106","labels_url":"https://api.github.com/repos/vbuterin/pybitcointools/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/vbuterin/pybitcointools/issues/106/comments","events_url":"https://api.github.com/repos/vbuterin/pybitcointools/issues/106/events","html_url":"https://github.com/vbuterin/pybitcointools/issues/106","id":98574540,"number":106,"title":"script_to_address method fails with dogecoin p2sh","user":{"login":"mflaxman","id":448644,"avatar_url":"https://avatars.githubusercontent.com/u/448644?v=3","gravatar_id":"","url":"https://api.github.com/users/mflaxman","html_url":"https://github.com/mflaxman","followers_url":"https://api.github.com/users/mflaxman/followers","following_url":"https://api.github.com/users/mflaxman/following{/other_user}","gists_url":"https://api.github.com/users/mflaxman/gists{/gist_id}","starred_url":"https://api.github.com/users/mflaxman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mflaxman/subscriptions","organizations_url":"https://api.github.com/users/mflaxman/orgs","repos_url":"https://api.github.com/users/mflaxman/repos","events_url":"https://api.github.com/users/mflaxman/events{/privacy}","received_events_url":"https://api.github.com/users/mflaxman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-02T01:34:33Z","updated_at":"2015-10-07T05:53:09Z","closed_at":"2015-10-07T05:53:09Z","body":"[This BTC p2sh transaction](https://api.blockcypher.com/v1/btc/main/txs/2b4bc85d1967c2df455fca5e7f9bb177ab3a90e76000d7c00e312d4a9d7443a1) works fine:\r\n\r\n```\r\n>>> script_to_address('a914e32b88faeb7ce3e5d56d279ca7fac2ff47181bb587', vbyte=5)\r\n'3NQBTxcD8jCQn4sSrs44NqF3q3htFMCgBf'\r\n```\r\n\r\nHowever, [this DOGE p2sh transaction](https://api.blockcypher.com/v1/doge/main/txs/5916863fc141c3f084f0d525d66e9af139d987073c9ca60306c78d4eaf228629) fails:\r\n```\r\n>>> script_to_address('a91467dbc5109dec5bf662df10378e91100cf3beeacb87', vbyte=22)\r\n'3BAAoB5irPfTYzVSJXays7JzLVLE9o39Y2'\r\n```\r\nBesides being the incorrect value, it's also an impossible value. Dogecoin addresses can't start with a 3. The correct address here should be `A1uRY29cvTYMTMruifFQ7EwN34iGDDpe7X`"}}