{"action":"created","issue":{"url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/196","repository_url":"https://api.github.com/repos/coniks-sys/coniks-go","labels_url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/196/comments","events_url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/196/events","html_url":"https://github.com/coniks-sys/coniks-go/issues/196","id":276721462,"number":196,"title":"error when trying to register the name-key pair","user":{"login":"chesnokovilya","id":23733292,"avatar_url":"https://avatars0.githubusercontent.com/u/23733292?v=4","gravatar_id":"","url":"https://api.github.com/users/chesnokovilya","html_url":"https://github.com/chesnokovilya","followers_url":"https://api.github.com/users/chesnokovilya/followers","following_url":"https://api.github.com/users/chesnokovilya/following{/other_user}","gists_url":"https://api.github.com/users/chesnokovilya/gists{/gist_id}","starred_url":"https://api.github.com/users/chesnokovilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chesnokovilya/subscriptions","organizations_url":"https://api.github.com/users/chesnokovilya/orgs","repos_url":"https://api.github.com/users/chesnokovilya/repos","events_url":"https://api.github.com/users/chesnokovilya/events{/privacy}","received_events_url":"https://api.github.com/users/chesnokovilya/received_events","type":"User","site_admin":false},"labels":[{"id":671629216,"url":"https://api.github.com/repos/coniks-sys/coniks-go/labels/blocked","name":"blocked","color":"000000","default":false},{"id":385496708,"url":"https://api.github.com/repos/coniks-sys/coniks-go/labels/bug","name":"bug","color":"ee0701","default":true},{"id":412549263,"url":"https://api.github.com/repos/coniks-sys/coniks-go/labels/client","name":"client","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-11-25T03:10:30Z","updated_at":"2017-11-29T11:34:10Z","closed_at":null,"author_association":"NONE","body":"I am running server from master branch on local machine(CentOs 7):\r\n```\r\n[ilya@localhost]~/coniks% ~/go/bin/coniksserver run -p\r\n2017-11-25T10:02:17.072+0700\tINFO\tAccepting registrations\t{\"address\": \"tcp://127.0.0.1:3000\"}\r\n```\r\n \r\nWhen I try to register name-key pair I got the following error:\r\n\r\n```[ilya@localhost]~/coniks-client% ~/go/bin/coniksclient run              \r\nconiks-client> register alice MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7z\r\nhZj6+H0qtjTkVxwTCpvKe4eCZ0\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x70b6b2]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/coniks-sys/coniks-go/protocol/auditor.(*AudState).CheckSTRAgainstVerified(0xc4200cec20, 0xc4200f8720, 0x5778d9b2ba91b117, 0x570000c4200fc840)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/protocol/auditor/auditor.go:99 +0x32\r\ngithub.com/coniks-sys/coniks-go/protocol/auditor.(*AudState).AuditDirectory(0xc4200cec20, 0xc4200f79c8, 0x1, 0x1, 0x7f47658a8000, 0x0)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/protocol/auditor/auditor.go:152 +0x4a\r\ngithub.com/coniks-sys/coniks-go/protocol/client.(*ConsistencyChecks).updateSTR(0xc4200cec40, 0x0, 0xc4200fc840, 0xc4200150e0, 0x50)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/protocol/client/consistencychecks.go:137 +0xa1\r\ngithub.com/coniks-sys/coniks-go/protocol/client.(*ConsistencyChecks).HandleResponse(0xc4200cec40, 0x0, 0xc4200fc840, 0xc420070489, 0x5, 0xc4200150e0, 0x4c, 0x50, 0x0, 0x0)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/protocol/client/consistencychecks.go:115 +0x91\r\ngithub.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd.register(0xc4200cec40, 0xc420014320, 0xc420070489, 0x5, 0xc42007048f, 0x4c, 0xc420072d98, 0x3)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd/run.go:142 +0x28d\r\ngithub.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd.run(0x986c40)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd/run.go:98 +0x937\r\ngithub.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd.glob..func2(0x986c40, 0x9a6710, 0x0, 0x0)\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd/run.go:36 +0x2b\r\ngithub.com/spf13/cobra.(*Command).execute(0x986c40, 0x9a6710, 0x0, 0x0, 0x986c40, 0x9a6710)\r\n\t/home/ilya/go/src/github.com/spf13/cobra/command.go:700 +0x2bd\r\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x986a20, 0xc420070058, 0x0, 0x5)\r\n\t/home/ilya/go/src/github.com/spf13/cobra/command.go:781 +0x349\r\ngithub.com/spf13/cobra.(*Command).Execute(0x986a20, 0x986a20, 0xc42004ff50)\r\n\t/home/ilya/go/src/github.com/spf13/cobra/command.go:734 +0x2b\r\ngithub.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd.Execute()\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/coniksclient/cli/internal/cmd/root.go:29 +0x31\r\nmain.main()\r\n\t/home/ilya/go/src/github.com/coniks-sys/coniks-go/coniksclient/cli/coniksclient.go:10 +0x20```\r\n"},"comment":{"url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/comments/347833950","html_url":"https://github.com/coniks-sys/coniks-go/issues/196#issuecomment-347833950","issue_url":"https://api.github.com/repos/coniks-sys/coniks-go/issues/196","id":347833950,"user":{"login":"c633","id":5112602,"avatar_url":"https://avatars3.githubusercontent.com/u/5112602?v=4","gravatar_id":"","url":"https://api.github.com/users/c633","html_url":"https://github.com/c633","followers_url":"https://api.github.com/users/c633/followers","following_url":"https://api.github.com/users/c633/following{/other_user}","gists_url":"https://api.github.com/users/c633/gists{/gist_id}","starred_url":"https://api.github.com/users/c633/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c633/subscriptions","organizations_url":"https://api.github.com/users/c633/orgs","repos_url":"https://api.github.com/users/c633/repos","events_url":"https://api.github.com/users/c633/events{/privacy}","received_events_url":"https://api.github.com/users/c633/received_events","type":"User","site_admin":false},"created_at":"2017-11-29T11:34:10Z","updated_at":"2017-11-29T11:34:10Z","author_association":"MEMBER","body":"@chesnokovilya  You could print the initial STR of the server and write it to the client's config file and read from it (https://github.com/coniks-sys/coniks-go/blob/master/coniksclient/config.go#L33). The config file is written in TOML format and we currently use `github.com/BurntSushi/toml` to work with the format. However, I suggest you should write a test (for example, like this one: https://github.com/coniks-sys/coniks-go/blob/master/protocol/auditlog/auditlog_test.go#L21) instead of manually running the binaries. "}}
{"actor":{"display_login":"c633"}}