{"action":"created","issue":{"url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/122","labels_url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/122/comments","events_url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/122/events","html_url":"https://github.com/haskoin/haskoin-wallet/issues/122","id":108653213,"number":122,"title":"non-metadata non-privkey holding, transaction caching server should provides unspent outputs to signing-capable hw client upon request","user":{"login":"tphyahoo","id":1337,"avatar_url":"https://avatars.githubusercontent.com/u/1337?v=3","gravatar_id":"","url":"https://api.github.com/users/tphyahoo","html_url":"https://github.com/tphyahoo","followers_url":"https://api.github.com/users/tphyahoo/followers","following_url":"https://api.github.com/users/tphyahoo/following{/other_user}","gists_url":"https://api.github.com/users/tphyahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/tphyahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tphyahoo/subscriptions","organizations_url":"https://api.github.com/users/tphyahoo/orgs","repos_url":"https://api.github.com/users/tphyahoo/repos","events_url":"https://api.github.com/users/tphyahoo/events{/privacy}","received_events_url":"https://api.github.com/users/tphyahoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-28T12:59:58Z","updated_at":"2015-09-29T08:30:09Z","closed_at":null,"body":"per convo in #5"},"comment":{"url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/comments/143985507","html_url":"https://github.com/haskoin/haskoin-wallet/issues/122#issuecomment-143985507","issue_url":"https://api.github.com/repos/haskoin/haskoin-wallet/issues/122","id":143985507,"user":{"login":"xenog","id":904557,"avatar_url":"https://avatars.githubusercontent.com/u/904557?v=3","gravatar_id":"","url":"https://api.github.com/users/xenog","html_url":"https://github.com/xenog","followers_url":"https://api.github.com/users/xenog/followers","following_url":"https://api.github.com/users/xenog/following{/other_user}","gists_url":"https://api.github.com/users/xenog/gists{/gist_id}","starred_url":"https://api.github.com/users/xenog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenog/subscriptions","organizations_url":"https://api.github.com/users/xenog/orgs","repos_url":"https://api.github.com/users/xenog/repos","events_url":"https://api.github.com/users/xenog/events{/privacy}","received_events_url":"https://api.github.com/users/xenog/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T08:30:09Z","updated_at":"2015-09-29T08:30:09Z","body":"I’m afraid I did not understand. Would you care to explain the architecture?\r\n\r\nI’ll take the opportunity to write what I have in mind on the subject:\r\n\r\n- server that keeps maps of xpub → transactions, xpub → utxo\r\n- encrypted metadata storage (probably in the same server above, for simplicity)\r\n- client\r\n\r\nThe client being the only one capable of signing transactions. A default client should be available as an `hw` command that at first should do a few simple things:\r\n\r\n### Creating wallet\r\n\r\n```\r\n$ hw new\r\nEncryption Passphrase: <mnemonic sentence or passphrase>\r\nAgain: <passphrase>\r\nMnemonic ([Enter] to create a new wallet): [mnemonic sentence of existing wallet]\r\nNew wallet created, seed: <mnemonic sentence of new wallet>\r\n```\r\n\r\n### Creating normal account\r\n\r\n```\r\n$ hw newacc normal --label \"Simple is Better\"\r\nPassphrase: <mnemonic sentence or passphrase>\r\nNew normal account created.\r\n```\r\n\r\n### Creating multisig account\r\n\r\n```\r\n$ hw newacc multisig --keys 3 --sigs 2 --date 2013-07-13 --gap 10 \\\r\n> --pregen-internal 1200 --pregen-external 100 --label \"Fun with Flags\" \\\r\n> [xpub, ...]\r\nPassphrase: <mnemonic sentence or passphrase>\r\nNew multisig account created, missing 1 keys, provide this xpub to other participants:\r\nxpub...\r\n```\r\n\r\n### Adding your own key to an existing multisig account\r\n\r\n```\r\n$ hw newacc multisig --existing xpub --path /1337h\r\nPassphrase: <mnemonic sentence or passphrase>\r\nAdded your own key to an existing multisig account. No more keys needed.\r\nAccount parameters (retrieved from server):\r\nLabel: Fun with Flags\r\nExternal address count: 100\r\nInternal address count: 1200\r\nCreation date: 2013-07-13\r\nUnused Address Gap: 10\r\n```\r\n\r\n### Creating a multisig transaction with your signature\r\n\r\n```\r\n$ hw send --from \"Fun with Flags\" <address amount, ...>\r\nPassphrase: <mnemonic sentence or passphrase>\r\nTransaction created, missing 1 signatures.\r\nMultisig transaction ID: deadbeef1337\r\n```\r\n\r\n### Signing a multisig transaction\r\n\r\n```\r\n$ hw sign deadbeef1337\r\nTransaction recipients (retrieved from server):\r\nAddress1: amount\r\nAddress2: amount\r\nSign? <y/n>\r\nPassphrase: <mnemonic sentence or passphrase>\r\nTransaction complete. Sent to network.\r\nTransaction ID: 4ea174a94ac7109...\r\n```"}}