Design the Blockchain Instance

The Complete Blockchain Professional Course Forming your own Blockchain Solution
10 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€93.47
List Price:  €130.87
You save:  €37.39
£79.12
List Price:  £110.77
You save:  £31.65
CA$136.80
List Price:  CA$191.52
You save:  CA$54.72
A$153.03
List Price:  A$214.24
You save:  A$61.21
S$136.24
List Price:  S$190.75
You save:  S$54.50
HK$782.75
List Price:  HK$1,095.89
You save:  HK$313.13
CHF 90.39
List Price:  CHF 126.55
You save:  CHF 36.16
NOK kr1,103.76
List Price:  NOK kr1,545.32
You save:  NOK kr441.55
DKK kr697.01
List Price:  DKK kr975.84
You save:  DKK kr278.83
NZ$168.36
List Price:  NZ$235.71
You save:  NZ$67.35
د.إ367.25
List Price:  د.إ514.16
You save:  د.إ146.91
৳11,001.09
List Price:  ৳15,401.97
You save:  ৳4,400.87
₹8,339.41
List Price:  ₹11,675.50
You save:  ₹3,336.09
RM476.70
List Price:  RM667.40
You save:  RM190.70
₦132,134.22
List Price:  ₦184,993.20
You save:  ₦52,858.97
₨27,905.82
List Price:  ₨39,069.27
You save:  ₨11,163.44
฿3,697.97
List Price:  ฿5,177.30
You save:  ฿1,479.33
₺3,250.47
List Price:  ₺4,550.79
You save:  ₺1,300.31
B$511.57
List Price:  B$716.23
You save:  B$204.65
R1,877.82
List Price:  R2,629.02
You save:  R751.20
Лв182.79
List Price:  Лв255.92
You save:  Лв73.12
₩137,795.03
List Price:  ₩192,918.56
You save:  ₩55,123.52
₪381.78
List Price:  ₪534.51
You save:  ₪152.73
₱5,764.02
List Price:  ₱8,069.86
You save:  ₱2,305.84
¥15,807.91
List Price:  ¥22,131.71
You save:  ¥6,323.80
MX$1,715.83
List Price:  MX$2,402.24
You save:  MX$686.40
QR365.49
List Price:  QR511.70
You save:  QR146.21
P1,379.76
List Price:  P1,931.72
You save:  P551.96
KSh13,280.92
List Price:  KSh18,593.82
You save:  KSh5,312.90
E£4,785.67
List Price:  E£6,700.13
You save:  E£1,914.46
ብር5,752.60
List Price:  ብር8,053.87
You save:  ብር2,301.27
Kz83,397.65
List Price:  Kz116,760.05
You save:  Kz33,362.40
CLP$95,187.41
List Price:  CLP$133,266.18
You save:  CLP$38,078.77
CN¥724.48
List Price:  CN¥1,014.31
You save:  CN¥289.82
RD$5,876.15
List Price:  RD$8,226.85
You save:  RD$2,350.69
DA13,419.92
List Price:  DA18,788.43
You save:  DA5,368.50
FJ$226.22
List Price:  FJ$316.72
You save:  FJ$90.50
Q779.62
List Price:  Q1,091.50
You save:  Q311.88
GY$20,970.66
List Price:  GY$29,359.76
You save:  GY$8,389.10
ISK kr14,012.52
List Price:  ISK kr19,618.09
You save:  ISK kr5,605.56
DH1,012.51
List Price:  DH1,417.55
You save:  DH405.04
L1,776.81
List Price:  L2,487.61
You save:  L710.79
ден5,750.48
List Price:  ден8,050.91
You save:  ден2,300.42
MOP$808.27
List Price:  MOP$1,131.61
You save:  MOP$323.34
N$1,891.23
List Price:  N$2,647.80
You save:  N$756.57
C$3,688.83
List Price:  C$5,164.51
You save:  C$1,475.68
रु13,363.42
List Price:  रु18,709.33
You save:  रु5,345.90
S/376.55
List Price:  S/527.19
You save:  S/150.63
K386.91
List Price:  K541.69
You save:  K154.78
SAR375
List Price:  SAR525.02
You save:  SAR150.01
ZK2,656.27
List Price:  ZK3,718.89
You save:  ZK1,062.61
L465.65
List Price:  L651.93
You save:  L186.28
Kč2,349.23
List Price:  Kč3,289.02
You save:  Kč939.78
Ft36,664.08
List Price:  Ft51,331.18
You save:  Ft14,667.09
SEK kr1,088.81
List Price:  SEK kr1,524.39
You save:  SEK kr435.57
ARS$87,581.58
List Price:  ARS$122,617.72
You save:  ARS$35,036.13
Bs695.16
List Price:  Bs973.25
You save:  Bs278.09
COP$396,484.19
List Price:  COP$555,093.74
You save:  COP$158,609.54
₡50,931.67
List Price:  ₡71,306.37
You save:  ₡20,374.70
L2,475.19
List Price:  L3,465.37
You save:  L990.17
₲746,363.69
List Price:  ₲1,044,939.03
You save:  ₲298,575.33
$U3,863.50
List Price:  $U5,409.05
You save:  $U1,545.55
zł402.98
List Price:  zł564.19
You save:  zł161.21
Already have an account? Log In

Transcript

Once you have finalized the use case, consensus algorithm platform and also design the architecture, the next step required is to finalize the design of blockchain instance. It's always prescribed that meticulous attention to details is necessary to develop a blockchain instance. As this design will be carried for the lifecycle of the blockchain. Every specific blockchain platform has blockchain parameters associated with it, which you can configure as per your requirement. Even if you're building a blockchain platform from scratch, you can include all the parameters mentioned here. Please pay careful notice to the parameters when you are building your blockchain instance.

The first parameter is permissions. We need to see whether we require permissions in our blockchain implementation or not. For example, if we are building a student credential storage for education industry over blockchain, then we might require permissions where we can provide the permissions to the students to only fetch or read the records. And on the other hand, we can provide the permissions to the universities to store as well as read the student credential records. It could also be a solution similar to Bitcoin, where we want to create a regulated cryptocurrency. For this kind of solution, we might want to keep all the permissions open.

The second parameter we need to look into is the asset issuance and reissuance. It could be a solution where we want to create assets as a digital representation of a physical thing present in the real world. For example, we can develop assets related to Cars, which can be listed for sale, we can call one car token as one car in the physical world. And when we are transferring one car token, that means we are selling one of our real car. For this example, we issued assets over the blockchain, which corresponds to cars. But now for the same scenario, we don't require reissuance of the assets.

Because once the car has been sold, we cannot resell the same car. On the other hand, if we are working on a solution for the agriculture industry, then we might issue assets against fruits. Let's suppose we issued assets for 10 oranges, and 20 apples, and within the same day, we sold all our fruits. Now in the next day, we might again require 10 more oranges and 20 more Apple assets or 50 new banana assets for such a solution, we require the capability of creations of assets, we need to carefully judge whether we require asset issuance or re issuance in our solution. The third parameter is the atomic exchange. We also need to figure out whether we require exchange of assets or cryptocurrencies in over system or not exchanges work on the principle of give and take, we are passing on one kind of asset or money and receiving some different kind of asset or currency.

For example, we could be providing bitcoins and acquiring ethers, or asset related to the physical world, like providing apples and receiving oranges in the same transaction. If we require atomic exchanges, we need to maintain them in the blockchain instance from the start. The next thing we require is a schema engagement. This is one of the most important aspects of our blockchain instance, we should manage over keys securely and efficiently. Most of the blockchain solutions are being hacked because of their key management mistakes. There was one example where one of the blockchain exchanges was storing the private keys of the users on a central server.

The hackers were able to gain access to that server, they were able to steal the user keys, which the exchange was holding, and they transferred all the bitcoins to their accounts. We need to manage the keys for our blockchain solution carefully. It could be a solution, where you don't hold the keys at your end, and provide the private keys to end users only. It could also be a solution that users store the keys inside a hardware wallet or it could be a solution. Where we have a central server for storage of the private keys, but always make sure that the user keys are protected as this is the primary entity authenticating users over the blockchain. After managing keys, we also need to look into multi signatures.

Multi signatures work similarly as the approval systems in any approval based hierarchy or system, different level of approvals are present and only if the approvals are done, then the process moves further and will be successful. If the approvals have not been met, then the process becomes a failure. For example, when an employee is posting the reimbursement of spendings to his company, then he has to have his managers approval. And in some cases, the approval of group directors is required as well. Only when the employee gets the approval. Over his request, then his reimbursement will be processed.

Multi signatures work on the same principle. For example, we could distribute five different private keys related to one account over the blockchain and have a policy which dictates that only if two of the private keys out of the five sign the transaction, then only it can be broadcasted over the blockchain. The next important thing to finalize upon are the block parameters. Block parameters are essential for the blockchain as they define the capabilities of the blockchain. Block parameters include the block time, block size, transaction size, minimum transaction value, maximum transaction value fees, and many more parameters. All these parameters will define how a transaction block and data will look like in the blockchain.

Blockchain will follow these parameters for each new block produced. So, we require to put in the careful thought in designing block parameters. After designing capabilities with the block parameters, we also need to see the limitations of the blockchain limitations are also necessary for the security and scalability for the blockchain. Some limits could be related to transaction metadata, where a transaction must have a specific data included. It could also be related to the block size, which can be uploaded over the blockchain. For example, Bitcoin has the limitation of one MB for the block size.

Depending on the use case, we need to define limitations for the blockchain instance. After limitations, we need to establish the network protocols and handshaking process For the nodes, or computers, this is one of the significant parts of the blockchain projects and used to create peer to peer network where computer communicates and synchronizes the data. We need to develop a strategy related to how network protocols are going to work. Whether the network includes verification and validation of nodes, whether we are going to run gossip protocols to distribute the data between different nodes, or are we going to implement our services like TLS, or HTTPS. These will help us to distribute the data with the nodes. We also need to define the handshake agreements and synchronization processes between different nodes which are going to connect to the blockchain.

After designing all of the above, we will also need to set up over key and address formats which we are going to use Different blockchains have different formats. These formats are created for implementing various encoding and transformations required for the private keys and addresses over the blockchain. We need to define how the keys and addresses are going to be represented. We can take up the format's already defined in the public blockchain. Or if required, we can create our definition of formats. Proper key and address formats unnecessary to safeguard the blockchain securely.

Finally, you also need to see the requirement for the native currencies or assets. Native assets are different from the assets which we talked about earlier. Native assets here are like ether, which is a cryptocurrency present over the Ethereum blockchain. And assets are like the tokens in the Ico which we deploy over the blockchain. For a specific function, and between the agreed upon parties, as per our use case, we need to see the requirement of the cryptocurrencies with our project. If we are going to keep some fees over the transactions or pay the participants for doing any work on the blockchain, then we might require to keep the native assets.

This was just a brief about designing the blockchain instance, after designing the blockchain instance, you need to see the API's which will be enabled for your blockchain. Now, let's go and see about the blockchain API's.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.