-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclass 10.txt
222 lines (118 loc) · 4.44 KB
/
class 10.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
Read Write set validations:
Before commiting any data to ledger
1. Read the data from ledger and get is value
2. compare the Read write values
Token Id is our key
Token1 - 150 usd
txn1 -> (transfer 100 usd to user2)
Read set containes (Token1, V1)
Write set containes (Token1, 150)
RW set (Token1, 150, 100, V1)
txn2 -> (transfer 10 usd to user2)
Read set containes (Token1, V1)
Write set containes (Token1, 150)
RW set (Token1, 150, 10, V1)
Block1 : {txn1, txn2} ----> only 1 txn will be written to ledger and the 2nd txn is not committed to ledger
bank1 ---> {1 2 3} ----> B1 -> 1 2 3 4 5 6 7 8
bank2 ---> {7 8} ----> B1 -> 1 2 3 4 5 6 7 8
bank3 ---> {4 5} ----> B1 -> 1 2 3 4 5 6 7 8
bank4 ---> {6} ----> B1 -> 1 2 3 4 5 6 7 8
ordering service --> B1 ---> {1 2 3 4 5 6 7 8}
https://thesecretlivesofdata.com/raft/
5 banks --->
r1 - b1
r2 - b5
r3 - b4
r4 - b2
r5 - b1
5 banks: DLT Credit Ledger
---------
Cust A --> Bank a --->
data privacy standrads ---> GDPR, EU
Private Data collections ---->
(bank A - bank B)
Bank a --> identity files, config files
Bank b --> identity files, config files
Bank c --> identity files, config files
Bank d --> identity files, config files
Bank e --> identity files, config files
Docker compose file will be same for all orgs - network level details
configtx file will be same for all orgs - network level details
crypto config file will be for each and every org - org level details
java - HLF
Solidity - ETH
1tb RAM
security ---> eth ---> solidity ---> contracts underlying will hold some ETHERS ---> domain speific language
java, golang ---> general purpose program language
security, auditability, same data copy/replication
hardhat ---> most widely used ---> CLI hardhat
CORDA Flows:
-------------
1. Initiation if txn
2. Creating payload
3. Sign th txn with senders priv key
4. Valudate the txn with senders pub key
Consensus:
-----------
1. Validation Consensus ----> Validating digital signatures for a txn
2. Uniqueness Consensus ----> Checking/eliminating the double spending problem
standard edition offering --> Free of usage
Enterprise offering --> cost is incured on per TXN basis
bank a ---> 1 2 3
bank B ---> 4 5
bank C ---> 6 7
Notary: { 1 2 3 4 5 6 7 }
smart contracts ----> kotlin, java
https://developer.r3.com/
https://training.corda.net/
Zero gas:
---------
usr1 - txn1
usr2 - txn2
----
usr100 - txn100
1. Network combines multiple txn and send them in a single batch which will translate into very minimal fee on public blockahins
EVM
----
Ethereum
Polygon
Binance
Use Case Discussions:
----------------------
1. Issuance of employee expreicen/degree certificates for faster KYC process for employee onboarding, also elimnating fake degree certficates
private data attributes --- ???
{
college registration id
college
course
date of issuance
}
Auditing companies, previous employers, Some other foreign institutions (scholarship details)
a. foreign scholarship funds
b. previous
public blockchains have overhead of mining fee ----> we can also minimize the txn fee
https://docs.openzeppelin.com/learn/sending-gasless-transactions
2. Air Mile Rewards (transfer of rewards b/w diff organizations)
DGCA ---> limited 5 entities which enables interreward transfer of points
usr1 --> 10000 indigo
--> 5000 air India
15000 -----> waiver of 75% on booking fee --->
airlines ----> banks
{
cust id
air miles data e1-10
}
3. Land registry on blockchain
using this platform all other like Housing welfare associations, municipality tax, ease of land transfer
public ---> any user can query the data with ease
private ---> create a public endpoint URL with some speific access tokens (can be done at application level)
email id and mobile num
http://landowners.abc.com/checkstatus ---> GET / read only operation of blockchain
Blockchain Interoperability:
----------------------------
Enables data transfer b/w various blockchain platforms (ether to HLF, HLF to Corda, Corda to Bitcoin)
Bridges --- area of research
https://chain.link/cross-chain
4. Storing patient data record for claim processing, duplicate claims elimination
5. bond financing b/w banks
6. Food supplychain use case ----> walmart, DHL,