How to create a SCDO mining account

SCDO
2 min readJun 4, 2024

--

In the previous article, we mentioned that in order to run a SCDO mining node, one would need one account and a configuration file. So let’s explore how to create an account in the article.

Create an account

By Slowlifetrader

An account is identified by a unique pair of address and private key. The first 4 characters of the address indicate which shard the account belongs to.

Let’s assume that we are already in the directory which contains the executable node and client.

By executing the command,

Copy

$ ./client key --shard [option shard number]

The option can be any of 1,2,3,4.

For example, execute the following:

Copy

$ ./client key --shard 1

the output is like,

Account: 1S014f574f8b5749eff6d24f18640d820327c5daf1

Private key:0x1c18aaa42429e903aa4aba753e500e3e0061f7dbca6d1a2c6499b2226b72a0ec

Note the address is also labeled as “Account” in the output. The first 4 chars indicates which shard the account belongs to.

Note: each run of the same command line will produce a different outcome.

Copy

$ ./client key --shard 2

The output is

Account: 2S0215ac0412394ec2fa4215b72602a70724bf9b11

Private key: 0x4e19191ed142c5fb9af0425b16399a09e35ef1e913d68e4fd1cbbb538de74d7d

One can create in any shard as many accounts as he wants.

In general, an address and a private key has one-to-one correspondence. Since there are 4 shards, SCDO let you use only one private key to control four different accounts/addresses, one for each shard. Here is how:

Executing the command without shard option will always give a pair of address and private key in shard 1 :

Copy

./client key

The output is

Account: 1S01f18fd1317001c81d9cb8346521cdd9f486bb41

Private key: 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f

One may be already note that the first 4 chars in the Account string indicate which shard the account belongs to.

If one edits the account string in the output:

1S01f18fd1317001c81d9cb8346521cdd9f486bb41

to create the following

2S02f18fd1317001c81d9cb8346521cdd9f486bb41

3S03f18fd1317001c81d9cb8346521cdd9f486bb41

4S04f18fd1317001c81d9cb8346521cdd9f486bb41

then there will be four different pairs:

Account: 1S01f18fd1317001c81d9cb8346521cdd9f486bb41

Private key: 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f

Account:2S02f18fd1317001c81d9cb8346521cdd9f486bb41

Private key: 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f

Account: 3S03f18fd1317001c81d9cb8346521cdd9f486bb41

Private key: 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f

Account: 4S04f18fd1317001c81d9cb8346521cdd9f486bb41

Private key: 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f

These are all valid accounts in SCDO and with the same private key 0xa94c7bb78579585a8b1d3346034fc124ace2e79ba80c3107fbb3d72be86dcb8f. However we prefer to generate an account by executing the command line one by one.

Copy

$ ./client key --shard [option]

Now you know how to generate a pair of public and private keys.

In the next article, we will see how to create a configuration file.

Follow us: https://x.com/scdolab

--

--

SCDO
0 Followers

SCDO is a Depin public chain based on the ZPoW algorithm. It pays tribute to Sotoshi's POW spirit of fairness. It also uses four-sharding technology.