{"action":"created","issue":{"url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/1","repository_url":"https://api.github.com/repos/input-output-hk/rscoin-haskell","labels_url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/1/comments","events_url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/1/events","html_url":"https://github.com/input-output-hk/rscoin-haskell/pull/1","id":177531993,"number":1,"title":"Permit mintette","user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gromakovsky","id":2556409,"avatar_url":"https://avatars.githubusercontent.com/u/2556409?v=3","gravatar_id":"","url":"https://api.github.com/users/gromakovsky","html_url":"https://github.com/gromakovsky","followers_url":"https://api.github.com/users/gromakovsky/followers","following_url":"https://api.github.com/users/gromakovsky/following{/other_user}","gists_url":"https://api.github.com/users/gromakovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/gromakovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gromakovsky/subscriptions","organizations_url":"https://api.github.com/users/gromakovsky/orgs","repos_url":"https://api.github.com/users/gromakovsky/repos","events_url":"https://api.github.com/users/gromakovsky/events{/privacy}","received_events_url":"https://api.github.com/users/gromakovsky/received_events","type":"User","site_admin":false},"assignees":[{"login":"gromakovsky","id":2556409,"avatar_url":"https://avatars.githubusercontent.com/u/2556409?v=3","gravatar_id":"","url":"https://api.github.com/users/gromakovsky","html_url":"https://github.com/gromakovsky","followers_url":"https://api.github.com/users/gromakovsky/followers","following_url":"https://api.github.com/users/gromakovsky/following{/other_user}","gists_url":"https://api.github.com/users/gromakovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/gromakovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gromakovsky/subscriptions","organizations_url":"https://api.github.com/users/gromakovsky/orgs","repos_url":"https://api.github.com/users/gromakovsky/repos","events_url":"https://api.github.com/users/gromakovsky/events{/privacy}","received_events_url":"https://api.github.com/users/gromakovsky/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-16T22:19:22Z","updated_at":"2016-09-19T11:05:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/pulls/1","html_url":"https://github.com/input-output-hk/rscoin-haskell/pull/1","diff_url":"https://github.com/input-output-hk/rscoin-haskell/pull/1.diff","patch_url":"https://github.com/input-output-hk/rscoin-haskell/pull/1.patch"},"body":"Implement a way to deploy mintettes independently from other nodes.\r\nThis deployment process shall involve presenting a signed permission from\r\ncentral bank (that the party that starts a mintette has received in the past)\r\nalong with information about deployment such that central bank can add new\r\nmintette to DKP - a list of authorized mintettes by a bank (difficult, long).\r\n\r\n\r\n1. Bank receives public key of Ira, who is the owner of the future to-be mintette.\r\n\r\nIra generates the private/public key using ed25519 algorithm, supported on all platforms\r\nusing:\r\n\r\n    $ rscoin-mintette create-permission-keypair\r\n    Creating keypair at /path ...\r\n    Done\r\n\r\nIra sends the public key over an encrypted channel to the bank operator. To be specified how.\r\n\r\n\r\n2. Someone with access to server where Bank is running executes:\r\n\r\n   $ rscoin-bank permit-mintette --key /home/$USER/.rscoin/key.pub\r\n\r\n\r\n3. Then after one week Ira decides to launch her mintette:\r\n\r\n   $ rscoin-mintette add-to-bank --host HOSTNAME --port PORT --sk SecretKeyPATH\r\n\r\nThe command sends following using detached signature ed25519 over RPC to the bank:\r\n\r\n     `AddMintette public-key-of-Ira (sign secret-key-of-Ira (\"www.ira-macropyra.me\", 1488))`.\r\n\r\n4. Bank receives this requests, verifies public-key-of-Ira, accepts it.\r\n\r\nWhen Bank receives this request and verifies it, Ira's mintette is put into `pendingMintettes`.\r\nAnd then, when new period starts, Ira's mintette is put into `Dpk` \r\n(this part, i. e. moving from pending into active, is already written).\r\n\r\n---\r\n\r\nDepends on https://github.com/input-output-hk/rscoin-core/pull/1\r\n\r\nNotes:\r\n\r\n- NOT TESTED WITH mintette on another node than bank, there could be a bug in there.\r\n\r\nQuestions:\r\n\r\n- Should permitted public key be removed after mintette was added?\r\n"},"comment":{"url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/comments/247965011","html_url":"https://github.com/input-output-hk/rscoin-haskell/pull/1#issuecomment-247965011","issue_url":"https://api.github.com/repos/input-output-hk/rscoin-haskell/issues/1","id":247965011,"user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T11:05:05Z","updated_at":"2016-09-19T11:05:05Z","body":"Thanks for the careful review @gromakovsky, I'll make the changes you suggested."}}
{"actor":{"display_login":"domenkozar"}}