{"action":"created","issue":{"url":"https://api.github.com/repos/tendermint/kms/issues/12","repository_url":"https://api.github.com/repos/tendermint/kms","labels_url":"https://api.github.com/repos/tendermint/kms/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/tendermint/kms/issues/12/comments","events_url":"https://api.github.com/repos/tendermint/kms/issues/12/events","html_url":"https://github.com/tendermint/kms/issues/12","id":321175423,"number":12,"title":"Serialize the SignHeartbeat Struct","user":{"login":"zmanian","id":93434,"avatar_url":"https://avatars3.githubusercontent.com/u/93434?v=4","gravatar_id":"","url":"https://api.github.com/users/zmanian","html_url":"https://github.com/zmanian","followers_url":"https://api.github.com/users/zmanian/followers","following_url":"https://api.github.com/users/zmanian/following{/other_user}","gists_url":"https://api.github.com/users/zmanian/gists{/gist_id}","starred_url":"https://api.github.com/users/zmanian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmanian/subscriptions","organizations_url":"https://api.github.com/users/zmanian/orgs","repos_url":"https://api.github.com/users/zmanian/repos","events_url":"https://api.github.com/users/zmanian/events{/privacy}","received_events_url":"https://api.github.com/users/zmanian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T12:57:58Z","updated_at":"2018-05-08T12:59:36Z","closed_at":null,"author_association":"COLLABORATOR","body":"Test Vector\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"github.com/tendermint/go-amino\"\r\n\t\"github.com/tendermint/tendermint/types\"\r\n\t\"github.com/tendermint/tendermint/types/priv_validator\"\r\n)\r\n\r\nfunc main() {\r\n\taddr := []byte{0xa3, 0xb2, 0xcc, 0xdd, 0x71, 0x86, 0xf1, 0x68, 0x5f, 0x21, 0xf2, 0x48, 0x2a, 0xf4, 0xfb, 0x34, 0x46, 0xa8, 0x4b, 0x35}\r\n\thb := &types.Heartbeat{\r\n\t\tValidatorAddress: types.Address(addr),\r\n\t\tValidatorIndex:   1,\r\n\t\tHeight:           15,\r\n\t\tRound:            10,\r\n\t\tSequence:         30,\r\n\t}\r\n\tcdc := amino.NewCodec()\r\n\tcdc.RegisterInterface((*privval.SocketPVMsg)(nil), nil)\r\n\tcdc.RegisterConcrete(&privval.PubKeyMsg{}, \"tendermint/socketpv/PubKeyMsg\", nil)\r\n\tcdc.RegisterConcrete(&privval.SignVoteMsg{}, \"tendermint/socketpv/SignVoteMsg\", nil)\r\n\tcdc.RegisterConcrete(&privval.SignProposalMsg{}, \"tendermint/socketpv/SignProposalMsg\", nil)\r\n\tcdc.RegisterConcrete(&privval.SignHeartbeatMsg{}, \"tendermint/socketpv/SignHeartbeatMsg\", nil)\r\n\tdata, _ := cdc.MarshalBinary(privval.SignHeartbeatMsg{Heartbeat: hb})\r\n\tfmt.Printf(\"%#v\\n\\n\", data)\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/tendermint/kms/issues/comments/387393799","html_url":"https://github.com/tendermint/kms/issues/12#issuecomment-387393799","issue_url":"https://api.github.com/repos/tendermint/kms/issues/12","id":387393799,"user":{"login":"zmanian","id":93434,"avatar_url":"https://avatars3.githubusercontent.com/u/93434?v=4","gravatar_id":"","url":"https://api.github.com/users/zmanian","html_url":"https://github.com/zmanian","followers_url":"https://api.github.com/users/zmanian/followers","following_url":"https://api.github.com/users/zmanian/following{/other_user}","gists_url":"https://api.github.com/users/zmanian/gists{/gist_id}","starred_url":"https://api.github.com/users/zmanian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmanian/subscriptions","organizations_url":"https://api.github.com/users/zmanian/orgs","repos_url":"https://api.github.com/users/zmanian/repos","events_url":"https://api.github.com/users/zmanian/events{/privacy}","received_events_url":"https://api.github.com/users/zmanian/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T12:59:36Z","updated_at":"2018-05-08T12:59:36Z","author_association":"COLLABORATOR","body":"Works in https://github.com/tendermint/kms/commit/e0b023babe3cb7284aea01384daa2eb509f4bd2c"}}
{"actor":{"display_login":"zmanian"}}