From 4c7b64038e2da81a8e7c8e40c11a645e8d8c8635 Mon Sep 17 00:00:00 2001 From: Captain Mylo Date: Sat, 13 Apr 2024 10:24:43 +0300 Subject: [PATCH 1/5] Create CLI registering an ID with 2 commands.md --- .../CLI registering an ID with 2 commands.md | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 VerusID/CLI registering an ID with 2 commands.md diff --git a/VerusID/CLI registering an ID with 2 commands.md b/VerusID/CLI registering an ID with 2 commands.md new file mode 100644 index 0000000..bb4dff3 --- /dev/null +++ b/VerusID/CLI registering an ID with 2 commands.md @@ -0,0 +1,71 @@ +For this exercise, the name to register is STONE. It is case insensitive. STONE = stone = StONe ... + +The goal of this exercise is to use the pbaas chain `vrsctest` to create an ID from the CLI. + +The `STONE@` identity will have only a primary address at creation. + +There will be no private address, no additional revocation or recovery addresses. + + +First step is `registernamecommitment` +``` +verus -chain=vrsctest registernamecommitment "STONE" "RJP1qzY2x8VXwtaSqMNLrhCpGZu2pLwYSY" "komodefi@" +``` +This responds with a name reservation json which makes up part of the `registeridentity` command. Copy+Paste this output for using later. + +``` +{ + "txid": "f9e0ca5658380ec9acb2434f058374690b1d252b9e93dcc458205965aa198ab7", + "namereservation": { + "version": 1, + "name": "STONE", + "parent": "iJhCezBExJHvtyH3fGhNnt2NhU4Ztkf2yq", + "salt": "5939fdbd9de44c9656e1319dccaa3df22e27e90e87fd99c3bb0bb163e4ab5b92", + "referral": "iDh9YykH3bDAW6o11PVzp4MBP6pyfiLDQC", + "nameid": "iHZB4DPHsT2Z1XaiqkTW7BJraD4oTEpzbL" + } +} +``` + +This transaction must be put into a block before continuing. + +Then we use `registeridentity` + +``` +verus -chain=vrsctest registeridentity '{"txid": "f9e0ca5658380ec9acb2434f058374690b1d252b9e93dcc458205965aa198ab7","namereservation": {"version": 1,"name": "STONE", "parent": "iJhCezBExJHvtyH3fGhNnt2NhU4Ztkf2yq","salt": "5939fdbd9de44c9656e1319dccaa3df22e27e90e87fd99c3bb0bb163e4ab5b92","referral": "iDh9YykH3bDAW6o11PVzp4MBP6pyfiLDQC","nameid": "iHZB4DPHsT2Z1XaiqkTW7BJraD4oTEpzbL"}, "identity": { "name": "STONE", "primaryaddresses": ["RJP1qzY2x8VXwtaSqMNLrhCpGZu2pLwYSY"], "privateaddress": "", "minimumsignatures": 1}}' +``` +for the resulting txid `35e0570a12e9454397a51b528f20f2df3cbe02cd223c513a5a5d294de5dad4f1` + +After waiting for the `35e0570a12...` transaction to be confirmed, we will have the `STONE@` identity in our wallet. We can check it out by using `getidentity` to view its attributes. +``` +verus -chain=vrsctest getidentity "STONE@" +{ + "friendlyname": "STONE.VRSCTEST@", + "fullyqualifiedname": "STONE.VRSCTEST@", + "identity": { + "version": 3, + "flags": 1, + "primaryaddresses": [ + "RJP1qzY2x8VXwtaSqMNLrhCpGZu2pLwYSY" + ], + "minimumsignatures": 1, + "name": "STONE", + "identityaddress": "iHZB4DPHsT2Z1XaiqkTW7BJraD4oTEpzbL", + "parent": "iJhCezBExJHvtyH3fGhNnt2NhU4Ztkf2yq", + "systemid": "iJhCezBExJHvtyH3fGhNnt2NhU4Ztkf2yq", + "contentmap": { + }, + "contentmultimap": { + }, + "revocationauthority": "iHZB4DPHsT2Z1XaiqkTW7BJraD4oTEpzbL", + "recoveryauthority": "iHZB4DPHsT2Z1XaiqkTW7BJraD4oTEpzbL", + "timelock": 0 + }, + "status": "active", + "canspendfor": true, + "cansignfor": true, + "blockheight": 454082, + "txid": "d9ef76d2080b3f368666dc207dfded67be4abb0c58e13a378e8e74cd0953886f", + "vout": 0 +} +``` From 925fd277a1e4689703e4bded363c210e4399d289 Mon Sep 17 00:00:00 2001 From: Captain Mylo Date: Sat, 13 Apr 2024 10:39:14 +0300 Subject: [PATCH 2/5] Update retype.manifest --- retype.manifest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retype.manifest b/retype.manifest index 36a7517..e1980c1 100644 --- a/retype.manifest +++ b/retype.manifest @@ -300,6 +300,9 @@ { "path": "verusid\\index.html" }, + { + "path": "verusid/cli-registering-an-id-with-2-commands.html" + }, { "path": "veruslogin\\getting-started\\index.html" }, @@ -340,4 +343,4 @@ "path": "verusvdxf\\index.html" } ] -} \ No newline at end of file +} From 44555d0ba8ce13b158823b63d2449609edc5c055 Mon Sep 17 00:00:00 2001 From: Captain Mylo Date: Sat, 13 Apr 2024 10:45:28 +0300 Subject: [PATCH 3/5] Update retype.manifest --- retype.manifest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retype.manifest b/retype.manifest index e1980c1..0b39f44 100644 --- a/retype.manifest +++ b/retype.manifest @@ -301,7 +301,7 @@ "path": "verusid\\index.html" }, { - "path": "verusid/cli-registering-an-id-with-2-commands.html" + "path": "verusid\\cli-registering-an-id-with-2-commands.html" }, { "path": "veruslogin\\getting-started\\index.html" From 76585812c6cbc0cd57e0f0c796c8fe209acd2993 Mon Sep 17 00:00:00 2001 From: Captain Mylo Date: Sat, 13 Apr 2024 21:32:16 +0300 Subject: [PATCH 4/5] Update retype.yml --- retype.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retype.yml b/retype.yml index ed32392..5907973 100644 --- a/retype.yml +++ b/retype.yml @@ -1,6 +1,6 @@ input: . output: docs -url: https://monkins1010.github.io/ +url: https://imylomylo.github.io/new-verus-docs branding: title: Verus Developer From 40b5eda91d125b240987d7aedd9917710857990b Mon Sep 17 00:00:00 2001 From: imylomylo Date: Sat, 20 Dec 2025 08:03:54 +0200 Subject: [PATCH 5/5] (chore) revert retype.yml config for PR --- retype.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retype.yml b/retype.yml index 5907973..ed32392 100644 --- a/retype.yml +++ b/retype.yml @@ -1,6 +1,6 @@ input: . output: docs -url: https://imylomylo.github.io/new-verus-docs +url: https://monkins1010.github.io/ branding: title: Verus Developer