{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/12253","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/12253/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/12253/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/12253/events","html_url":"https://github.com/bitcoin/bitcoin/issues/12253","id":291021756,"node_id":"MDU6SXNzdWUyOTEwMjE3NTY=","number":12253,"title":"SegWit support for importmulti","user":{"login":"sipa","id":548488,"node_id":"MDQ6VXNlcjU0ODQ4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/548488?v=4","gravatar_id":"","url":"https://api.github.com/users/sipa","html_url":"https://github.com/sipa","followers_url":"https://api.github.com/users/sipa/followers","following_url":"https://api.github.com/users/sipa/following{/other_user}","gists_url":"https://api.github.com/users/sipa/gists{/gist_id}","starred_url":"https://api.github.com/users/sipa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sipa/subscriptions","organizations_url":"https://api.github.com/users/sipa/orgs","repos_url":"https://api.github.com/users/sipa/repos","events_url":"https://api.github.com/users/sipa/events{/privacy}","received_events_url":"https://api.github.com/users/sipa/received_events","type":"User","site_admin":false},"labels":[{"id":98279177,"node_id":"MDU6TGFiZWw5ODI3OTE3Nw==","url":"https://api.github.com/repos/bitcoin/bitcoin/labels/RPC/REST/ZMQ","name":"RPC/REST/ZMQ","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-23T22:48:42Z","updated_at":"2018-07-28T15:12:13Z","closed_at":null,"author_association":"MEMBER","body":"It's currently not possible to import (solvable) SegWit addresses (P2SH and native) using `importmulti`. I believe that's a shortcoming we should address before release.\r\n\r\nMy suggestion would be for P2WPKH (P2SH and native) to be supported without any extra arguments. This means that a P2WPKH address/script with corresponding private or public key should work. For P2SH it means checking if the supplied P2SH address perhaps matches the supplied public key or private key when converted to P2WPKH first.\r\n\r\nTo support P2WSH, I think we need an extra field \"witnessScript\". When supplied, it would either be required to match a P2WSH address/script directly, or if the address is P2SH, indirectly."},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/408614300","html_url":"https://github.com/bitcoin/bitcoin/issues/12253#issuecomment-408614300","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/12253","id":408614300,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYxNDMwMA==","user":{"login":"MarcoFalke","id":6399679,"node_id":"MDQ6VXNlcjYzOTk2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/6399679?v=4","gravatar_id":"","url":"https://api.github.com/users/MarcoFalke","html_url":"https://github.com/MarcoFalke","followers_url":"https://api.github.com/users/MarcoFalke/followers","following_url":"https://api.github.com/users/MarcoFalke/following{/other_user}","gists_url":"https://api.github.com/users/MarcoFalke/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoFalke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoFalke/subscriptions","organizations_url":"https://api.github.com/users/MarcoFalke/orgs","repos_url":"https://api.github.com/users/MarcoFalke/repos","events_url":"https://api.github.com/users/MarcoFalke/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoFalke/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T15:12:13Z","updated_at":"2018-07-28T15:12:13Z","author_association":"MEMBER","body":"If this is still not supported, it could make sense to add a note in the rpc help documentation of importmulti."}}
{"actor":{"display_login":"MarcoFalke"}}