{"action":"closed","issue":{"url":"https://api.github.com/repos/trustnote/rust-trustnote/issues/289","repository_url":"https://api.github.com/repos/trustnote/rust-trustnote","labels_url":"https://api.github.com/repos/trustnote/rust-trustnote/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/trustnote/rust-trustnote/issues/289/comments","events_url":"https://api.github.com/repos/trustnote/rust-trustnote/issues/289/events","html_url":"https://github.com/trustnote/rust-trustnote/issues/289","id":346007087,"node_id":"MDU6SXNzdWUzNDYwMDcwODc=","number":289,"title":"get wallet address keys","user":{"login":"GTnull","id":25980519,"node_id":"MDQ6VXNlcjI1OTgwNTE5","avatar_url":"https://avatars0.githubusercontent.com/u/25980519?v=4","gravatar_id":"","url":"https://api.github.com/users/GTnull","html_url":"https://github.com/GTnull","followers_url":"https://api.github.com/users/GTnull/followers","following_url":"https://api.github.com/users/GTnull/following{/other_user}","gists_url":"https://api.github.com/users/GTnull/gists{/gist_id}","starred_url":"https://api.github.com/users/GTnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GTnull/subscriptions","organizations_url":"https://api.github.com/users/GTnull/orgs","repos_url":"https://api.github.com/users/GTnull/repos","events_url":"https://api.github.com/users/GTnull/events{/privacy}","received_events_url":"https://api.github.com/users/GTnull/received_events","type":"User","site_admin":false},"labels":[{"id":1009759542,"node_id":"MDU6TGFiZWwxMDA5NzU5NTQy","url":"https://api.github.com/repos/trustnote/rust-trustnote/labels/A-wallet","name":"A-wallet","color":"e8ea56","default":false},{"id":895377987,"node_id":"MDU6TGFiZWw4OTUzNzc5ODc=","url":"https://api.github.com/repos/trustnote/rust-trustnote/labels/feature","name":"feature","color":"bde52d","default":false}],"state":"closed","locked":false,"assignee":{"login":"Xudong-Huang","id":14049451,"node_id":"MDQ6VXNlcjE0MDQ5NDUx","avatar_url":"https://avatars2.githubusercontent.com/u/14049451?v=4","gravatar_id":"","url":"https://api.github.com/users/Xudong-Huang","html_url":"https://github.com/Xudong-Huang","followers_url":"https://api.github.com/users/Xudong-Huang/followers","following_url":"https://api.github.com/users/Xudong-Huang/following{/other_user}","gists_url":"https://api.github.com/users/Xudong-Huang/gists{/gist_id}","starred_url":"https://api.github.com/users/Xudong-Huang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xudong-Huang/subscriptions","organizations_url":"https://api.github.com/users/Xudong-Huang/orgs","repos_url":"https://api.github.com/users/Xudong-Huang/repos","events_url":"https://api.github.com/users/Xudong-Huang/events{/privacy}","received_events_url":"https://api.github.com/users/Xudong-Huang/received_events","type":"User","site_admin":false},"assignees":[{"login":"Xudong-Huang","id":14049451,"node_id":"MDQ6VXNlcjE0MDQ5NDUx","avatar_url":"https://avatars2.githubusercontent.com/u/14049451?v=4","gravatar_id":"","url":"https://api.github.com/users/Xudong-Huang","html_url":"https://github.com/Xudong-Huang","followers_url":"https://api.github.com/users/Xudong-Huang/followers","following_url":"https://api.github.com/users/Xudong-Huang/following{/other_user}","gists_url":"https://api.github.com/users/Xudong-Huang/gists{/gist_id}","starred_url":"https://api.github.com/users/Xudong-Huang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xudong-Huang/subscriptions","organizations_url":"https://api.github.com/users/Xudong-Huang/orgs","repos_url":"https://api.github.com/users/Xudong-Huang/repos","events_url":"https://api.github.com/users/Xudong-Huang/events{/privacy}","received_events_url":"https://api.github.com/users/Xudong-Huang/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/trustnote/rust-trustnote/milestones/2","html_url":"https://github.com/trustnote/rust-trustnote/milestone/2","labels_url":"https://api.github.com/repos/trustnote/rust-trustnote/milestones/2/labels","id":3531974,"node_id":"MDk6TWlsZXN0b25lMzUzMTk3NA==","number":2,"title":"x86_64 Wallet Client","description":"wallet client for trustnote","creator":{"login":"joyious","id":504453,"node_id":"MDQ6VXNlcjUwNDQ1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/504453?v=4","gravatar_id":"","url":"https://api.github.com/users/joyious","html_url":"https://github.com/joyious","followers_url":"https://api.github.com/users/joyious/followers","following_url":"https://api.github.com/users/joyious/following{/other_user}","gists_url":"https://api.github.com/users/joyious/gists{/gist_id}","starred_url":"https://api.github.com/users/joyious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyious/subscriptions","organizations_url":"https://api.github.com/users/joyious/orgs","repos_url":"https://api.github.com/users/joyious/repos","events_url":"https://api.github.com/users/joyious/events{/privacy}","received_events_url":"https://api.github.com/users/joyious/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":7,"state":"open","created_at":"2018-07-30T12:15:06Z","updated_at":"2018-08-02T08:00:50Z","due_on":"2018-08-24T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-07-31T02:00:17Z","updated_at":"2018-08-02T08:00:50Z","closed_at":"2018-08-02T08:00:49Z","author_association":"CONTRIBUTOR","body":"```rust\r\n\r\n/// sign for hash, return base64 string\r\npub fn sign(hash: &str, prvk: &ExtendedPrivKey) -> Result<String>\r\n\r\n/// verify the bas64 string signiture with the hash and pub key (a bas64 string)\r\npub fn verify(hash: &str, b64_sig: &str, b64_pub_key: &str) -> Result<()>\r\n\r\n/// get wallet pubkey for a index\r\npub fn wallet_pubkey(master_prvk: &ExtendedPrivKey, wallet: u32) -> Result<ExtendedPubKey>\r\n\r\n/// get wallet prvkey for an address\r\npub fn wallet_address_prvkey(master_prvk: &ExtendedPrivKey, wallet: u32, is_change: bool, index: u32) -> Result<ExtendedPrivKey>\r\n\r\n/// get wallet pubkey for an address\r\n/// the wallet_pubk should be the return value of `wallet_pubkey`\r\npub fn wallet_address_pubkey(wallet_pubk: &ExtendedPubKey, is_change: bool, index: u32) -> Result<ExtendedPubKey>\r\n```"}}
{"actor":{"display_login":"Xudong-Huang"}}