{"action":"created","comment":{"url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/comments/167725394","pull_request_review_id":95986943,"id":167725394,"diff_hunk":"@@ -0,0 +1,84 @@\n+# Understanding Master and Regular Keys\n+\n+In the XRP Ledger, a digital signature proves that a transaction is authorized to do a specific set of actions. A digital signature is created based on a key pair associated with the transaction's sending account.\n+\n+You generate a key pair using the `wallet_propose` method. Here's a sample `wallet_propose` response:\n+\n+```\n+{\n+  \"result\": {\n+    \"account_id\": \"rDGnaDqJczDAjrKHKdhGRJh2G7zJfZhj5q\",\n+    \"key_type\": \"secp256k1\",\n+    \"master_key\": \"COON WARN AWE LUCK TILE WIRE ELI SNUG TO COVE SHAM NAT\",\n+    \"master_seed\": \"sstV9YX8k7yTRzxkRFAHmX7EVqMfX\",\n+    \"master_seed_hex\": \"559EDD35041D3C11F9BBCED912F4DE6A\",\n+    \"public_key\": \"aBQXEw1vZD3guCX3rHL8qy8ooDomdFuxZcWrbRZKZjdDkUoUjGVS\",\n+    \"public_key_hex\": \"0351BDFB30E7924993C625687AE6127034C4A5EBA78A01E9C58B0C46E04E3A4948\"\n+  },\n+  \"status\": \"success\",\n+  \"type\": \"response\"\n+}\n+```\n+\n+As you can see, in the context of the XRP Ledger, a key pair is composed of a bit more than a private key and a public key.\n+\n+**Private Key**\n+\n+The `master_key`, `master_seed`, and `master_seed_hex` are the private key in various formats, all of which can be used to sign transactions. Despite being prefixed with `master_`, these keys are not necessarily the master keys for an account. In this context, the `master_` prefix refers more to the keys' role as private keys.","path":"content/concept-keys.md","position":27,"original_position":27,"commit_id":"2c2450d7de8b8e1f2d312cd7e83b101959c95e31","original_commit_id":"2c2450d7de8b8e1f2d312cd7e83b101959c95e31","user":{"login":"mDuo13","id":7515597,"avatar_url":"https://avatars0.githubusercontent.com/u/7515597?v=4","gravatar_id":"","url":"https://api.github.com/users/mDuo13","html_url":"https://github.com/mDuo13","followers_url":"https://api.github.com/users/mDuo13/followers","following_url":"https://api.github.com/users/mDuo13/following{/other_user}","gists_url":"https://api.github.com/users/mDuo13/gists{/gist_id}","starred_url":"https://api.github.com/users/mDuo13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mDuo13/subscriptions","organizations_url":"https://api.github.com/users/mDuo13/orgs","repos_url":"https://api.github.com/users/mDuo13/repos","events_url":"https://api.github.com/users/mDuo13/events{/privacy}","received_events_url":"https://api.github.com/users/mDuo13/received_events","type":"User","site_admin":false},"body":"> Are both [`public_key` and `public_key_hex`] directly derived from [the `master_seed`] -- with each presented in different encoding formats? \r\n\r\nYes, that's precisely the case.","created_at":"2018-02-13T00:01:38Z","updated_at":"2018-02-13T00:01:38Z","html_url":"https://github.com/ripple/ripple-dev-portal/pull/299#discussion_r167725394","pull_request_url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/comments/167725394"},"html":{"href":"https://github.com/ripple/ripple-dev-portal/pull/299#discussion_r167725394"},"pull_request":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299"}},"in_reply_to_id":167355834},"pull_request":{"url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299","id":166100629,"html_url":"https://github.com/ripple/ripple-dev-portal/pull/299","diff_url":"https://github.com/ripple/ripple-dev-portal/pull/299.diff","patch_url":"https://github.com/ripple/ripple-dev-portal/pull/299.patch","issue_url":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/299","number":299,"state":"open","locked":false,"title":"Master and Regular Keys concept doc, Assign Regular Key tutorial","user":{"login":"jhaaaa","id":5481259,"avatar_url":"https://avatars2.githubusercontent.com/u/5481259?v=4","gravatar_id":"","url":"https://api.github.com/users/jhaaaa","html_url":"https://github.com/jhaaaa","followers_url":"https://api.github.com/users/jhaaaa/followers","following_url":"https://api.github.com/users/jhaaaa/following{/other_user}","gists_url":"https://api.github.com/users/jhaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/jhaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhaaaa/subscriptions","organizations_url":"https://api.github.com/users/jhaaaa/orgs","repos_url":"https://api.github.com/users/jhaaaa/repos","events_url":"https://api.github.com/users/jhaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/jhaaaa/received_events","type":"User","site_admin":false},"body":"- Adds a concepts doc on Master and Regular Keys. Built upon https://ripple.com/build/transactions/#setregularkey and https://ripple.com/build/transactions/#authorizing-transactions. \r\n\r\n- Adds a tutorial on Assigning Regular Keys. Built upon https://ripple.com/knowledge_center/generating-and-setting-a-regular-key/ and https://wiki.ripple.com/Example_API_Transactions#Set_Regular_Key.\r\n\r\n- Adds a concepts docs on Signatures. Build upon source material from Rome.\r\n\r\n- Adds fuller descrs of response fields for wallet_propose. Built upon source material from Rome.\r\n\r\n- Narrows the focus of SetRegularKeys ref doc to primarily reference material. Links to concepts and tutorial.\r\n\r\nPlease see **TODO** callouts for comments/questions.","created_at":"2018-01-30T21:21:26Z","updated_at":"2018-02-13T00:01:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fe5bf1deaf68b80d3d8987827c88cb9c4fae051","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299/commits","review_comments_url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299/comments","review_comment_url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/299/comments","statuses_url":"https://api.github.com/repos/ripple/ripple-dev-portal/statuses/2c2450d7de8b8e1f2d312cd7e83b101959c95e31","head":{"label":"jhaaaa:regular-keys","ref":"regular-keys","sha":"2c2450d7de8b8e1f2d312cd7e83b101959c95e31","user":{"login":"jhaaaa","id":5481259,"avatar_url":"https://avatars2.githubusercontent.com/u/5481259?v=4","gravatar_id":"","url":"https://api.github.com/users/jhaaaa","html_url":"https://github.com/jhaaaa","followers_url":"https://api.github.com/users/jhaaaa/followers","following_url":"https://api.github.com/users/jhaaaa/following{/other_user}","gists_url":"https://api.github.com/users/jhaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/jhaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhaaaa/subscriptions","organizations_url":"https://api.github.com/users/jhaaaa/orgs","repos_url":"https://api.github.com/users/jhaaaa/repos","events_url":"https://api.github.com/users/jhaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/jhaaaa/received_events","type":"User","site_admin":false},"repo":{"id":112529579,"name":"ripple-dev-portal","full_name":"jhaaaa/ripple-dev-portal","owner":{"login":"jhaaaa","id":5481259,"avatar_url":"https://avatars2.githubusercontent.com/u/5481259?v=4","gravatar_id":"","url":"https://api.github.com/users/jhaaaa","html_url":"https://github.com/jhaaaa","followers_url":"https://api.github.com/users/jhaaaa/followers","following_url":"https://api.github.com/users/jhaaaa/following{/other_user}","gists_url":"https://api.github.com/users/jhaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/jhaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhaaaa/subscriptions","organizations_url":"https://api.github.com/users/jhaaaa/orgs","repos_url":"https://api.github.com/users/jhaaaa/repos","events_url":"https://api.github.com/users/jhaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/jhaaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhaaaa/ripple-dev-portal","description":"Ripple developer portal with documentation and examples","fork":true,"url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal","forks_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/forks","keys_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/teams","hooks_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/hooks","issue_events_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/issues/events{/number}","events_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/events","assignees_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/assignees{/user}","branches_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/branches{/branch}","tags_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/tags","blobs_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/languages","stargazers_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/stargazers","contributors_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/contributors","subscribers_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/subscribers","subscription_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/subscription","commits_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/contents/{+path}","compare_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/merges","archive_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/downloads","issues_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/issues{/number}","pulls_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/labels{/name}","releases_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/releases{/id}","deployments_url":"https://api.github.com/repos/jhaaaa/ripple-dev-portal/deployments","created_at":"2017-11-29T21:25:24Z","updated_at":"2017-11-29T21:25:27Z","pushed_at":"2018-02-12T22:46:14Z","git_url":"git://github.com/jhaaaa/ripple-dev-portal.git","ssh_url":"git@github.com:jhaaaa/ripple-dev-portal.git","clone_url":"https://github.com/jhaaaa/ripple-dev-portal.git","svn_url":"https://github.com/jhaaaa/ripple-dev-portal","homepage":null,"size":20358,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ripple:master","ref":"master","sha":"4967081bb38aab8e63f65cb40c853e0f0c8e65cc","user":{"login":"ripple","id":3165523,"avatar_url":"https://avatars2.githubusercontent.com/u/3165523?v=4","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"repo":{"id":17273151,"name":"ripple-dev-portal","full_name":"ripple/ripple-dev-portal","owner":{"login":"ripple","id":3165523,"avatar_url":"https://avatars2.githubusercontent.com/u/3165523?v=4","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ripple/ripple-dev-portal","description":"Ripple developer portal with documentation and examples","fork":false,"url":"https://api.github.com/repos/ripple/ripple-dev-portal","forks_url":"https://api.github.com/repos/ripple/ripple-dev-portal/forks","keys_url":"https://api.github.com/repos/ripple/ripple-dev-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripple/ripple-dev-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripple/ripple-dev-portal/teams","hooks_url":"https://api.github.com/repos/ripple/ripple-dev-portal/hooks","issue_events_url":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/events{/number}","events_url":"https://api.github.com/repos/ripple/ripple-dev-portal/events","assignees_url":"https://api.github.com/repos/ripple/ripple-dev-portal/assignees{/user}","branches_url":"https://api.github.com/repos/ripple/ripple-dev-portal/branches{/branch}","tags_url":"https://api.github.com/repos/ripple/ripple-dev-portal/tags","blobs_url":"https://api.github.com/repos/ripple/ripple-dev-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripple/ripple-dev-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripple/ripple-dev-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripple/ripple-dev-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripple/ripple-dev-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/ripple/ripple-dev-portal/languages","stargazers_url":"https://api.github.com/repos/ripple/ripple-dev-portal/stargazers","contributors_url":"https://api.github.com/repos/ripple/ripple-dev-portal/contributors","subscribers_url":"https://api.github.com/repos/ripple/ripple-dev-portal/subscribers","subscription_url":"https://api.github.com/repos/ripple/ripple-dev-portal/subscription","commits_url":"https://api.github.com/repos/ripple/ripple-dev-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripple/ripple-dev-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripple/ripple-dev-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripple/ripple-dev-portal/contents/{+path}","compare_url":"https://api.github.com/repos/ripple/ripple-dev-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripple/ripple-dev-portal/merges","archive_url":"https://api.github.com/repos/ripple/ripple-dev-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripple/ripple-dev-portal/downloads","issues_url":"https://api.github.com/repos/ripple/ripple-dev-portal/issues{/number}","pulls_url":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/ripple/ripple-dev-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/ripple/ripple-dev-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripple/ripple-dev-portal/labels{/name}","releases_url":"https://api.github.com/repos/ripple/ripple-dev-portal/releases{/id}","deployments_url":"https://api.github.com/repos/ripple/ripple-dev-portal/deployments","created_at":"2014-02-28T02:47:58Z","updated_at":"2018-02-12T23:47:11Z","pushed_at":"2018-02-12T22:46:16Z","git_url":"git://github.com/ripple/ripple-dev-portal.git","ssh_url":"git@github.com:ripple/ripple-dev-portal.git","clone_url":"https://github.com/ripple/ripple-dev-portal.git","svn_url":"https://github.com/ripple/ripple-dev-portal","homepage":null,"size":20326,"stargazers_count":89,"watchers_count":89,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":79,"open_issues":7,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299"},"html":{"href":"https://github.com/ripple/ripple-dev-portal/pull/299"},"issue":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/299"},"comments":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/ripple/ripple-dev-portal/statuses/2c2450d7de8b8e1f2d312cd7e83b101959c95e31"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mDuo13"}}