{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/1136","repository_url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib","labels_url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/1136/comments","events_url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/1136/events","html_url":"https://github.com/bitcoinjs/bitcoinjs-lib/issues/1136","id":343213626,"node_id":"MDU6SXNzdWUzNDMyMTM2MjY=","number":1136,"title":"Do we need to specify the network for WIF private keys derived via BIP32 and BIP39?","user":{"login":"sneurlax","id":4107993,"node_id":"MDQ6VXNlcjQxMDc5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/4107993?v=4","gravatar_id":"","url":"https://api.github.com/users/sneurlax","html_url":"https://github.com/sneurlax","followers_url":"https://api.github.com/users/sneurlax/followers","following_url":"https://api.github.com/users/sneurlax/following{/other_user}","gists_url":"https://api.github.com/users/sneurlax/gists{/gist_id}","starred_url":"https://api.github.com/users/sneurlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sneurlax/subscriptions","organizations_url":"https://api.github.com/users/sneurlax/orgs","repos_url":"https://api.github.com/users/sneurlax/repos","events_url":"https://api.github.com/users/sneurlax/events{/privacy}","received_events_url":"https://api.github.com/users/sneurlax/received_events","type":"User","site_admin":false},"labels":[{"id":187759993,"node_id":"MDU6TGFiZWwxODc3NTk5OTM=","url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/labels/how%20to%20/%20question%20/%20docs","name":"how to / question / docs","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-20T18:55:39Z","updated_at":"2018-07-29T06:41:42Z","closed_at":"2018-07-21T00:45:19Z","author_association":"NONE","body":"Hi, I'm using BIP39 mnemonics to derive addresses via BIP32 as in:\r\n\r\n```\r\n      let seed = bip39.mnemonicToSeed(seed, (passphrase) ? passphrase : undefined);\r\n      let root = bip32.fromSeed(seed);\r\n      let node = root.derivePath(`m/${purpose}'/${network}'/${account}'/${change}/${index}`);\r\n      let privateKey = node.toWIF();\r\n      return privateKey;\r\n```\r\n\r\nDo I need to specify a network or purpose, or is that accounted-for in the path?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/comments/408655833","html_url":"https://github.com/bitcoinjs/bitcoinjs-lib/issues/1136#issuecomment-408655833","issue_url":"https://api.github.com/repos/bitcoinjs/bitcoinjs-lib/issues/1136","id":408655833,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY1NTgzMw==","user":{"login":"sneurlax","id":4107993,"node_id":"MDQ6VXNlcjQxMDc5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/4107993?v=4","gravatar_id":"","url":"https://api.github.com/users/sneurlax","html_url":"https://github.com/sneurlax","followers_url":"https://api.github.com/users/sneurlax/followers","following_url":"https://api.github.com/users/sneurlax/following{/other_user}","gists_url":"https://api.github.com/users/sneurlax/gists{/gist_id}","starred_url":"https://api.github.com/users/sneurlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sneurlax/subscriptions","organizations_url":"https://api.github.com/users/sneurlax/orgs","repos_url":"https://api.github.com/users/sneurlax/repos","events_url":"https://api.github.com/users/sneurlax/events{/privacy}","received_events_url":"https://api.github.com/users/sneurlax/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T06:41:42Z","updated_at":"2018-07-29T06:41:42Z","author_association":"NONE","body":"Then I must be doing something wrong, because my code silently fails if I don't provide `fromWIF()` with a `network` object."}}
{"actor":{"display_login":"sneurlax"}}