{"action":"opened","issue":{"url":"https://api.github.com/repos/nixoid/cryptowallet/issues/1","labels_url":"https://api.github.com/repos/nixoid/cryptowallet/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nixoid/cryptowallet/issues/1/comments","events_url":"https://api.github.com/repos/nixoid/cryptowallet/issues/1/events","html_url":"https://github.com/nixoid/cryptowallet/issues/1","id":54017255,"number":1,"title":"part 1","user":{"login":"nixoid","id":45754,"avatar_url":"https://avatars.githubusercontent.com/u/45754?v=3","gravatar_id":"","url":"https://api.github.com/users/nixoid","html_url":"https://github.com/nixoid","followers_url":"https://api.github.com/users/nixoid/followers","following_url":"https://api.github.com/users/nixoid/following{/other_user}","gists_url":"https://api.github.com/users/nixoid/gists{/gist_id}","starred_url":"https://api.github.com/users/nixoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixoid/subscriptions","organizations_url":"https://api.github.com/users/nixoid/orgs","repos_url":"https://api.github.com/users/nixoid/repos","events_url":"https://api.github.com/users/nixoid/events{/privacy}","received_events_url":"https://api.github.com/users/nixoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"thirdchance57","id":3161426,"avatar_url":"https://avatars.githubusercontent.com/u/3161426?v=3","gravatar_id":"","url":"https://api.github.com/users/thirdchance57","html_url":"https://github.com/thirdchance57","followers_url":"https://api.github.com/users/thirdchance57/followers","following_url":"https://api.github.com/users/thirdchance57/following{/other_user}","gists_url":"https://api.github.com/users/thirdchance57/gists{/gist_id}","starred_url":"https://api.github.com/users/thirdchance57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thirdchance57/subscriptions","organizations_url":"https://api.github.com/users/thirdchance57/orgs","repos_url":"https://api.github.com/users/thirdchance57/repos","events_url":"https://api.github.com/users/thirdchance57/events{/privacy}","received_events_url":"https://api.github.com/users/thirdchance57/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-01-12T03:17:29Z","updated_at":"2015-01-12T03:17:29Z","closed_at":null,"body":"javascript library that will let us decrypt container with wallet. \r\nSimilar to how it's done in blockchain.info - customer downloads encrypted container, then it's decrypted with customer's password.\r\n\r\nuse Backbonejs (http://backbonejs.org/) for models implementation\r\nAES-256 for encryption (https://code.google.com/p/crypto-js/ as cryptogrpahy library)\r\n\r\nWe'll also need some bitcoin functions:\r\n1) generate keypair\r\n2) sign transaction with private key\r\n\r\nmake other classes to be subclasses of Account.\r\n\r\nmodels:\r\n\r\nContainer\r\n (property) data\r\n (method) encrypt(secret)\r\n\r\nAccount:\r\n (property) secret\r\n (property) container\r\n  \r\nKeyPair\r\n  private\r\n  public\r\n  (method) regenerate()\r\n  (method) getAddress()\r\n\r\nno network requests are necessary. Use placeholder data.\r\n\r\nexample of usage: \r\n\r\naccount = new Account()\r\naccount.set(\"encrypted_container\", \"aes-256 encrypted data here\");\r\n\r\naccount.decrypt('passphrase');\r\naccount.getAddress();\r\n\r\n// signing transactions\r\naccount.sign(rawTx)\r\n\r\n\r\n\r\n"}}