I nte rna t io na l J o urna l o f   E lect rica l a nd   Co m p ute r  E ng in ee ring   ( I J E CE )   Vo l.   10 ,   No .   6 ,  Decem b er   2 0 2 0 ,   p p .   6 3 9 9 ~ 6 4 1 1   I SS N:  2088 - 8708 ,  DOI : 1 0 . 1 1 5 9 1 / i j ec e . v 10 i 6 . pp 6 3 9 9 - 6 4 1 1           6399       J o ur na l  ho m ep a g e :  h ttp : //ij ec e. ia esco r e. co m/in d ex . p h p /I JE C E   A  dece ntrali z ed  c o nsens us  a pplica t io n   using   blo ckcha in  e co sy ste m         Chet a na   P uja ri ,  B a l a cha nd ra   M un iy a l ,  Cha nd ra k a la   C .   B .   De p a rtme n t  o f   In f o rm a ti o n   a n d   C o m m u n ica ti o n   T e c h n o l o g y ,   M a n ip a l  In stit u te  o f   T e c h n o l o g y ,     M a n ip a l  A c a d e m y   o f   Hi g h e r  Ed u c a ti o n ,   I n d ia       Art icle  I nfo     AB ST RAC T     A r ticle  his to r y:   R ec eiv ed   Au g   3 ,   2 0 1 9   R ev i s ed   Ma y   9 ,   2020   A cc ep ted   Ma y   27 ,   2 0 2 0       T h e   c o n se n su s  is  a   c rit ica l  o p e ra ti o n   o f   a n y   d e c isio n - m a k in g   p ro c e ss .     It  in v o lv e s  a   se t  o f   e li g ib le  m e m b e rs;   w h o se   d e c isio n   n e e d   t o   b e   h o n o re d   b y   tak in g   th e ir  a c k n o w led g m e n t  b e f o re   m a k in g   a n y   d e c isio n .   T h e   trad it io n a l   c o n se n su s  p ro c e ss   f o ll o w s  c e n tralize d   a rc h it e c tu re ,   th e   m e m b e r s  n e e d   to   re l y   o n   a n d   tru st  th is  a rc h i tec tu re .   T h e   p ro p o se d   sy ste m   a i m s  to   d e v e lo p   a   se c u re   d e c e n tralize d   c o n se n su s  a p p li c a ti o n   in   t h e   u n tr u ste d   e n v iro n m e n t  b y   m a k in g   u se   o f   b lo c k c h a in   tec h n o lo g y   a l o n g   w it h   s m a rt  c o n trac t  a n d   in ter p lan e tary   f il e   s y ste m   (IP F S ).   K ey w o r d s :   B lo ck ch ai n   C o n s e n s u s     DA p p   E th er eu m   Secu r it y   Co p y rig h t  ©   2 0 2 0   In stit u te o f  A d v a n c e d   E n g i n e e rin g   a n d   S c ien c e .    Al l  rig h ts re se rv e d .   C o r r e s p o nd ing   A uth o r :   C h a n d r ak ala  C .   B . ,    Dep ar t m en t o f   I n f o r m atio n   an d   C o m m u n icatio n   T ec h n o lo g y ,     Ma n ip al  I n s tit u te  o f   T ec h n o lo g y ,   Ma n ip al  A ca d e m y   o f   Hi g h er   E d u ca tio n   ( MA HE ) ,    Ma n ip al,   Kar n ata k a,   I n d ia.   E m ail: c h an d r ak a la. cb @ m an i p al. ed u       1.   I NT RO D UCT I O N     A   d ec is io n - m a k i n g   s y s te m   is   d esig n ed   to   m ak e  d ec is io n   b ased   o n   th e  co n s en s u s   f r o m   th e  elig ib l e   p ar ticip an ts   as  p er   th e  r u les/ r eg u la tio n s .   An   ex a m p le  o f   a  d ec is io n   s y s te m   i s   a  v o ter   s y s te m   u s ed   d u r in g     th e  elec tio n ,   w h er e  t h e  eli g ib le  p ar ticip an t  ca n   ca s t  v o te  t o   th e  ca n d id ate  o f   th eir   c h o ic e  an d   th e  o n e  w it h     th e  m aj o r ity   o f   t h e  v o te  is   d ec l ar ed   as a   w i n n er .   T h e  s a m e  m ec h an i s m   is   u s ed   to   tak e  a  co n s en s u s   w h en   a  n e w  r u les an d   r eg u lat io n s   ar e  p r o p o s ed   in   an y   in d u s tr y   o r   o r g an i za tio n .     T h e  s i m p le  d ec is io n - m a k i n g   s y s te m   i s   d esi g n ed   b y   ad ap ti n g   a  clien t - s er v er   ar ch itect u r e,   a n d   m o s t  o f   th e  d ata  p r o ce s s in g   an d   s to r ag e  ar e  h an d led   at  th e  s er v er - s id e.   Du e  to   th is   ce n tr alize d   ar ch i tectu r e,   th e  c u r r en t   d ec is io n - m a k i n g   s y s te m   s u f f er s   f r o m   f o llo w i n g   li m ita tio n s :   -   Av ailab ilit y :  As  t h e  d ata  is   m an ag ed   at  t h e  ce n tr al ized   s er v er ,   if   th e  s er v er   g o es  d o w n .   T h e  d ata  w ill  n o   lo n g er   b e  av ailab le  to   s u p p o r t  d ec is io n   m a k i n g .   -   I n teg r it y :  Du e   to   ce n tr alize d   s to r ag e  t h er e  is   a  p o s s ib il it y   t h at  t h e  d ata  ca n   b e  m a n ip u la t ed   b y   o n e  w h o   o w n s   t h e  ce n tr alize d   s er v er .     -   Data   P r o v en an ce :  L ac k   o f   tr u s t in   ta m p er - r esi s tan t in   d ata  p r o v en a n ce   is   o n e  o f   t h e  co n ce r n s .     T o   ad d r ess   th ese  i s s u es  a  d ec en tr alize d   ap p licatio n   ca n   b e  d esig n ed   o n   to p   o f   th e  b lo ck ch ai n   tech n o lo g y .   I t  f o llo w s   a  p ee r   to   p ee r   ar ch itectu r e,   h e n ce   in s tead   o f   s to r in g   t h e  d ata  in   a  ce n tr alize d   s er v er ,     th e  d ata  i s   s to r ed   at  ev er y   n o d e  in   th e   n e t w o r k   a n d   th e   d ata  is   s ec u r ed   cr y p to g r ap h ic all y .   I n   t h is   m o d el ,     t h e  i m p o r ta n t p r o p er ties   o f   an y   d ec en tr alize d   ap p licatio n s   ar e:   -   Au t h o r it y : D u e  to   its   d is tr ib u t ed   s to r ag e,   th e  is s u e s   co n ce r n ed   w it h   ce n tr alize d   au th o r it y   c an   b e  av o id ed .   -   Av ailab ilit y :  Av ailab ili t y   o f   t h e  d ata  is   en s u r ed   ev en   i f   o n e  o f   th e  n o d es f ai ls   to   o p er ate.   -   I n teg r it y : T h e  h as h i n g   co n ce p t   u s ed   to   s to r e  tr an s ac tio n s ,   en s u r es d ata   in te g r it y .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 ,  Decem b er   2020   :    6 3 9 9   -   6 4 1 1   6400   -   C o n f lict  R e s o lv e:  Sec u r e  d ata  p r o v en an ce   is   en s u r ed   u s i n g   a  cr y p to g r ap h ical  co n ce p t,  w h ic h   h elp s   to   r eso lv e  co n f licts   i n   a  s h o r t ti m e.     T h e  p r o p o s ed   w o r k   ai m s   t o   b u ild   a  d ec e n tr alize d   co n s en s u s   ap p licatio n   u s i n g   a  b lo ck ch ai n   ec o s y s te m ,   w h er e  t h e  u s er s   ar e  id en tif ied   b ased   o n   th eir   lo g in   cr ed en tial s   an d   ac co u n t  ad d r ess ,     ea ch   tr an s ac t io n   is   s ec u r ed   b y   en cr y p tin g   th e m   u s i n g   t h e  p r iv ate  k e y .   T h e  d ata  is   s to r ed   in   th e  s m ar t  co n tr ac t   s to r ag e  w h ich   e n s u r es  d ata  i n teg r i t y   a n d   p r o v en an ce .   T h e  f r o n t  en d /  cl ien t - s id e  ap p licatio n   is   h o s ted   in     th e  I P FS   n et w o r k .   T h e  p r o p o s ed   w o r k   ad d r ess es  t h e  is s u e s   id en ti f ied   in   cu r r e n t  d ec is io n - m a k i n g   s y s te m s .   T h e  d ata  av ailab ilit y   is   g u a r an teed   b y   m a k i n g   u s e  o f   a  d ec en tr alize d   n et w o r k ,   w h er e  ea ch   n o d e  in     th e  n et w o r k s   m ai n tai n s   a  co p y   o f   t h e  d ata.   T h e  u s er   is   au th e n tica ted   b y   h i s   ac co u n t   n u m b er   an d   lo g i n   cr ed en tials .   T h e  d ata  co n f id en tialit y   i s   en s u r ed   b y   u s in g   p u b l ic - k e y   cr y p to s y s te m   a n d   f in al l y ,   t h e  d ata   in te g r it y   is   e n s u r ed   b y   u s i n g   a  h as h i n g   a lg o r it h m .   T h e  p ap er   is   o r g an ized   a s   f o llo w s .   Se ctio n   2   p r esen t s   a n   o v er v ie w   o f   b lo ck c h ai n   tech n o lo g y   a n d   its   ec o s y s te m .   I n   s ec tio n   3 ,   th e  p r o b lem   w i th   an   e m p h a s is   o n   o b j ec ti v es,  r esear ch   g ap   a n d   r atio n ale  ar e  d escr ib ed .   Sectio n   4   g i v es  t h e  m et h o d o lo g y   f o r   th e  r ea lizat io n   of   a  d ec en tr alize d   ap p licati o n   f o r   co n s en s u s .   T h e  r esu lt  s ec tio n   g iv e s   an   in s i g h t  in to   th e  o u tco m es.   T h e  co n clu s io n   s ec tio n   co n clu d es th e  p ap er .       2.   B L O CK CH AIN   2 . 1 .     B lo ck cha in o v er v iew     B lo ck ch ai n   is   a  s ec u r e  d is tr ib u ted   led g er   tech n o lo g y .   I t  c o n s is ts   o f   tr an s ac tio n s ,   g r o u p ed   to   f o r m   b lo ck s .   T h ese  b lo ck s   ar e  lin k ed   cr y p to g r ap h icall y ,   h e n ce ,   it  is   ca lled   b lo ck ch ai n .   T h e  b lo ck ch ain   is   d is tr ib u ted   to   e v er y   n o d e  in   th e  p ee r   to   p ee r   b lo ck ch a in   n et w o r k .   T h e  b lo ck c h ai n   tec h n o lo g y ,   t h er e f o r e,   en s u r es d ec en tr alize d   an d   ta m p er   r esis tan ce   b eh a v io r   [ 1 ] .       2 . 1 . 1 .   Why   blo ck cha i n ?     As  m o s t  o f   t h e  d ev elo p in g   c o u n tr ies  h a v e  s tar ted   a  m o v e m en t  f r o m   ca s h   to   ca s h le s s   an d   g o in g   d ig i tized ,   t h e  s ec u r e   m icr o p ay m en t,  o n l in e   tr an s ac tio n ,   an d   s ec u r e  d ig ital c o m m u n icatio n   a r e  ess e n tial   f ac to r s   to   co n s id er .   C u r r en tl y ,   d is tr ib u ted   s y s te m s   ar e  u s ed   f o r   d i g i tal  co m m u n icat io n .   T h e y   ar e  p r o n e  to   is s u es  l ik e   d ata  in teg r it y ,   d ata  co n f id en ti alit y ,   d ata  p r o v en a n ce   an d   lac k   o f   o w n er s h ip   [ 2 - 4 ] .   T h e  b lo ck ch ai n   tec h n o lo g y   ca n   b e  u s ed   to   ad d r ess   is s u es r elate d   to   d ata  co n f id en tialit y ,   i n teg r i t y ,   a n d   n o n - r ep u d iatio n .   B an k s   an d   f i n an c ial  o r g a n izat io n s   ar e  g o v er n ed   b y   ce n tr al  o r   f ed er al  au t h o r ities .   T h e  r u l es   i m p o s e d   o n   tr an s ac tio n s ,   s u c h   as   tr an s ac tio n   f ee s   a n d   tr a n s ac tio n   li m it  c h a n g e s   w i th   s h ar e  m ar k et  an d   g o v er n m e n t   p o licies,  h en ce ,   t h er e  i s   a  n ee d   to   n av i g ate  to   a  d ec e n tr alize d   s y s te m   li k e  b lo ck ch a in   w h er e in   p eo p le  in v o lv ed   in   a  s y s te m   ca n   m ak e  a  co n tr ac t   an d   v alid ate  ev er y   tr a n s ac tio n   b y   tak i n g   a  co n s e n s u s   f r o m   ev er y   o t h er   m e m b er   i n   th e  s y s te m .   Fra u d s   a n d   h ac k in g   r elate d   to   co n f id en tial  d ata  li k e  i n ter n et  b a n k in g ,   cr ed it/d eb it  ca r d   d ata,     h ea lt h   r ec o r d s ,   d ata  g e n er ated   b y   m o n ito r i n g   s y s te m s   li k e  v id eo   s u r v ei llan ce ,   e lectr o n ic  a p p lian ce   u s ag e  d at a   an d   s en s o r   d ata  ar e  ch allen g es  f o r   an y   d ig ita l  an d   I o T   b a s ed   ap p licatio n s .   Usi n g   b lo ck ch ain   w it h   ap p lied   cr y p to g r ap h y ,   m o s t o f   t h e  ab o v e - m e n tio n ed   ch alle n g e s   ca n   b e  ad d r ess ed   to   s o m e  ex te n t.      2 . 1 . 2 .   B lo ck cha in  us ec a s e    B lo ck ch ai n   ca n   b e  u s ed   i n   a  v ar iet y   o f   ap p licatio n s   li k e  cr y p to c u r r en c y ,   c lo u d   s er v ice,   la n d   r eg is tr atio n ,   v o ti n g   s y s te m ,   la w   en f o r ce m e n t   an d   I o T   b ased   ap p licatio n s   [ 5 ,  6 ] .   L et ’ s   co n s id er   th e   u s ec ase   o f   th e  lan d   r eg i s tr atio n   ap p licati o n .   T h e  ap p lic atio n   m u s t  id en tify   th e  u s er   an d   au t h e n ticate  th e m   b e f o r e  s ellin g   o r   b u y in g   t h e  la n d .   I t  m u s t   also   en s u r e,   s ec u r e  r ec o r d   m an a g e m e n t,  v er i f y   an d   v ali d ate  th e  u p lo ad ed   d o cu m en ts .   B lo ck ch ai n   ec o s y s te m   ca n   b e  u s ed   to   ad d r ess   th ese  r eq u ir e m en t s   b y   p r o v id in g   a n   in ter f ac e  to   u p lo ad   d o cu m en ts   r elate d   to   u s er   id en tit y   an d   la n d   d etails,  en ab le  tr ac k in g   tr a n s ac ti o n s   an d   v er if y i n g   d o cu m en ts .   B lo ck ch a in   ec o s y s te m   al s o   en s u r es t h e  p r o tectio n   ag ai n s t la n d - f r a u d   an d   r ec o r d   tam p er i n g   [ 7 ] .     2 . 1 . 3 .   B uil din g   blo cks   o f   a   blo ck cha i n   T h e  th r ee   b u ild in g   b lo ck s   o f   a  b lo ck ch ai n   ar e  s h o w n   in   t h e  F ig u r e   1.   -   E n cr y p tio n   an d   cr y p to g r ap h y :  T h ese  en s u r e  s ec u r it y   s er v ices  s u c h   as  a u t h en ticatio n ,   au th o r izatio n ,     n o n - r ep u d iatio n   a n d   co n fi d en t ialit y   [ 8 ,   9 ] .   -   C o n s e n s u s   m ec h a n i s m s :  T h es e  ar e  th e   alg o r it h m s   u s ed   to   d ec id e,   w h e th er ,   a   n e w   b lo ck   o f   v alid ated   tr an s ac tio n s   s h o u ld   b e  ad d ed   t o   th e  ch ai n   o r   r ej ec te d .   -   T im esta m p   a n d   h a s h in g   o f   th e  p r ev io u s   b lo ck :  T h ese  e n s u r e  d ata  in te g r it y .   T h e  b lo ck c h ain   s tr u ctu r e   h elp s   to   tr ac k   b ac k   to   a  s p ec i fic  tr an s ac t io n ,   d u e  to   co n s is te n t a n d   i m m u tab le  d ata  p r o v en an ce .   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       A   d ec en tr a liz ed   co n s en s u s   a p p lica tio n   u s in g   b lo ck ch a in   ec o s ystem  ( C h eta n a   P u ja r i)   6401       Fig u r e  1 .   B lo ck ch ain   b u ild in g   b lo ck s       2 . 1 . 4 .   B lo ck cha in  wo rk ing   B lo ck ch ai n   tec h n o lo g y   u s es   a   lin k ed   lis t   d ata   s tr u c tu r e   as   s h o w n   in   Fi g u r e   2.   T r an s a cti o n s   ar e   v alid at ed   by   t h e   p ar ticip an t   n o d es   in   t h e   b lo ck c h ai n   [ 1 0 ] .   A   g r o u p   of   th e   v al i d   tr an s ac tio n s   is   s to r ed   in   a   b lo ck   an d   co n fi d e n tialit y   is   m ai n tai n ed   by   h a s h in g   each   b lo ck .   E ac h   b lo ck   s to r es   th e   h as h   g e n er ated   by   th e   p r ev i o u s   b lo ck   to   f o r m   a   ch ain   of   b lo ck s   w h ich   r ese m b les   a   lin k ed   lis t   s tr u c tu r e.   E v er y   b lo ck   m ai n tai n s   a   led g er   of   a   v a li d   tr a n s ac tio n .   If   a n y   h ac k er   tr ies   to   ta m p er   th e   d ata,   it   af f ec ts   th e   h as h   v a lu e   s ig n i fi ca n tly .   A d d in g   a   n ew   b lo ck   to   ch ai n   r eq u ir es   a   co n s e n s u s   f r o m   e v e r y   o t h er   n o d e   in   t h e   ch ain   h en ce   en s u r i n g   v alid ati o n   of   each   b lo ck   [ 1 1 ] .   T h e  tw o   m aj o r   r o les o f   a n y   p ar ticip an ts   i n   th e  b lo ck c h ai n   ar e  d is cu s s ed   b el o w :   -   I n itiate  tr an s ac tio n :  I n   o r d er   to   h av e  ac ti v e  b lo ck ch a in   o r   t o   in itiate  a  b lo ck c h ain ,   t h e  p ar ticip an t  m u s t   in itiate  a  tr a n s ac tio n .   T h e  tr an s ac tio n   is   t h e n   v er i fied   b y   o t h e r   p ar ticip an ts   in   t h e  b lo ck ch ai n   n et w o r k .   -   P ar ticip an t  ca n   p la y   th e   r o le  o f   m i n er s   a n d   ca n   d o   a   tas k   lik e  v er i f y in g   a n d   b r o ad ca s ti n g   tr an s ac tio n   co m p eti n g   to   ad d   a  b lo ck ,   b r o ad ca s tin g   a  n e w   b lo ck   a n d   co n fi r m i n g   t h e  tr an s ac tio n .           Fig u r e  2 .   B lo ck ch ain   ex a m p le       B lo ck ch ai n   tech n o lo g y   is   d iv i d ed   in to   p r iv ate  an d   p u b lic  b lo ck ch ai n s .   -   P r iv ate  B lo ck ch ain :  I t  is   also   k n o w n   a s   a  p er m i s s io n ed   b lo ck ch ai n ,   h er e  o n e  n ee d s   to   h a v e  p er m is s io n   to   p er f o r m   r ea d ,   w r ite  an d   u p d ate  o p er atio n .   T h e  d is tr ib u ted   p r o p er ty   o f   b lo ck ch ai n   is   w it h   r esp ec t  to     th e  led g er .   -   P u b lic  B lo ck ch ai n :  An y b o d y   ca n   p ar ticip ate  in   a  p u b lic  b l o ck ch ai n   as  it  is   p u b lic.   I t  d o es  n o t  d ea l  w it h   ac ce s s   m a n ag e m e n t   a n d   a n y b o d y   ca n   b e  p ar t  o f   t h e  co n s en s u s .   Va lid atio n   is   d o n e   b y   t h e  n o d es  co n n ec ted   to   th e  n et w o r k .     2 . 2 .     Co ns ens us   m ec ha n is m   T h e  co n s en s u s   m ec h a n is m   is   th e  d ec is i o n   m a k i n g   p r o ce s s   th r o u g h   w h ich   a n y   n e w   v alid   o r   v er ifi ed   b lo ck   is   ad d ed   to   th e  b lo ck c h ain ,   w h ich   in   tu r n   i m p r o v e s   t h e  tr u s t  le v el.   T h e  t w o   m o s t  p r o m i n e n t  co n s en s u s   m ec h a n i s m   is   p r o o f   o f   w o r k   a n d   p r o o f   o f   s tak e.   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 ,  Decem b er   2020   :    6 3 9 9   -   6 4 1 1   6402   -   P r o o f   o f   w o r k :   I n   t h i s   m ec h a n is m ,   a n y   n e w   tr a n s ac tio n   i n   t h e  b lo ck ch ai n   n et w o r k   i s   b r o ad ca s ted   to   ev er y   o th er   n o d e  i n   t h e   n et w o r k   v ia  g o s s ip   p r o to co l.  T h e  m i n er   n o d es  s elec t   a  g r o u p   o f   t h e  tr a n s ac tio n s   to   f o r m   a  b lo ck .   A ll  th e  s elec ted   tr an s ac tio n s   ar e  v er i fi ed   an d   a r e  h as h ed   alo n g   w it h   th e  n o n ce .   T h i s   h as h i n g   p r o ce s s   is   r ep ea ted   f o r   th e  d if f er en t  n o n ce   u n til  t h e  d i f fi c u lt y   is   m et.   O n ce   t h e  b lo ck   is   cr ea ted   it  is   b r o ad ca s ted   to   ev er y   o th er   n o d e.   T h e  b lo ck   is   th en   v er i fi ed   at  ea ch   n o d e  u s in g   th e  g iv e n   n o n ce .   T h e  m in e r   w h o   cr ea tes  th e  b lo ck   an d   r ec eiv es  a  p o s itiv e  co n s e n s u s   f r o m   o th er   n o d es  w ill  b e  r ew ar d ed   an d   th e  m i n er ’ s   b lo ck   is   ad d ed   to   th e  n et w o r k   [ 1 2 ] .   I f   t w o   m i n er s   cr ea te  a  b lo ck   at  th e  s am e  ti m e,   b o th   b lo ck s   w il l  b e  ad d ed   to   th e  n et w o r k   f o r m i n g   t w o   b r an c h es  o f   th e  c h ain ,   b ased   o n   w h er e  th e  n e x t   b lo c k   is   ad d ed   th e  ad d itio n al  b lo ck   is   d is ca r d ed .   T h is   p r o o f   o f   w o r k   co n s en s u s   m ec h a n i s m   i s   cu r r en tl y   u s ed   in   b itco in ,   E th er eu m ,   an d   m an y   o th er   b lo ck ch ai n   p lat f o r m s .   -   P r o o f   o f   s tak e :  I n   p r o o f   o f   w o r k   m ec h a n i s m ,   h u g e  co m p u t atio n   p o w er   is   r eq u ir ed   to   cr ea te  a  b lo ck   th at   s atis fies   t h e  d if ficu l t y   le v el,   an d   also   th e  m i n er   w it h   t h e  h i g h est  co m p u tat io n   p o w er   is   g e n er all y     th e  w i n n er .   T o   o v er co m e  t h i s   p r o b lem   a  n e w   m ec h a n i s m   ca lled   p r o o f   o f   s ta k e  ca m e  in to   e x is te n ce .   I n   th i s   m ec h an is m ,   th e  m i n er s   ar e  k n o w n   as  v alid ato r s ,   an d   th e y   n ee d   to   d ep o s it  s o m e  co i n   as  a  s tak e  i n     th e   n e t w o r k .   T h e  v alid ato r s   ar e  s elec ted   in   s o m e  p s eu d o r an d o m   o r d er .   On ce   s elec ted   th e  v alid ato r   h as  t o   v er if y   th e  tr a n s ac tio n s   an d   cr ea te  a  b lo ck .   T h is   b lo ck   is   th e n   b r o ad ca s ted   to   o th er   n o d es  w h o   th e n   v er i f y   th e  b lo ck   cr ea ted   an d   s en d   a  p o s itiv e  co n s en s u s   f o r   th e  v alid   b lo ck   [ 1 2 ] .       3.   RE L AT E D  WO RK S   T h e  f o llo w i n g   r esear ch   r e v ie w   i s   d o n e  to   u n d er s ta n d   th e   ex is t in g   ap p r o ac h es  u s ed   in   d ec is io n   m ak in g ,   an d   s o m e  p ap er s   ar e  s tu d ied   to   k n o w   t h e  i m p o r tan ce   o f   b lo ck ch ai n   tec h n o lo g y   a n d   its   d ec en tr al ized   ap p licatio n s .   Su p e n o   et   al. ,   [ 1 3 ]   h a v e   p r o p o s ed   a   d esig n   f o r   a   s ec u r e   elec tr o n ic   v o tin g   s y s te m .   SH A - 256   h as h i n g   a n d   t h e   R S A   alg o r it h m   ar e   u s ed   in   th e   p r o p o s ed   d esig n   to   en s u r e   d ata   s ec u r it y   a n d   in t eg r ity .   A ll   t h e   d ata   co llected   ar e   s to r ed   in   t h e   ce n tr alize d   s e r v e r ,   h en ce   if   t h e   s er v er   g o es   d o w n ,   th e   d ata   w o u ld   n o t   be   av aila b l e.   T h e   d ata   is   m ain tain ed   by   th e   ce n tr alize d   au t h o r i ty ;   h e n ce   it s   r eliab ilit y   a n d   tr u s t w o r t h in e s s   ar e   a   m atter   of   co n ce r n .   T h ese   is s u es c a n   b e  o v e r c o m e   b y   u s in g   b lo ck ch ai n   t e ch n o l o g y .   Sh a h za d   et  al. ,   [ 1 4 ]   h av e  p r o p o s ed   a  f r am e w o r k   f o r   th e  elec tr o n ic  v o ti n g   ap p licati o n   u s i n g   b lo ck ch ai n   tech n o lo g y .   B lo c k ch ai n   tec h n o lo g y   is   u s ed   to   en s u r e  d ata  s ec u r i t y ,   v er i fia b ilit y ,   an d   p r iv ac y ,     d u e  to   its   ir r e v er s ib le,   d is tr ib u ted   led g er   p r o p er ty .   I n   t h e  p r o p o s ed   s y s te m   S H A - 2 5 6   h ash i n g   u s ed   is   t h e  o n l y   s ec u r it y   as p e c t   c o n s i d e r e d   t o   s a f eg u a r d   b u s i n e s s   l o g i c .   I n clu d i n g   a   s m a r t c o n t r a c t ,   w h i ch   h as b u s in e s s   l o g ic   in   it  can   p r o v i d e   b e tt e r   s e cu r i ty .   K s h e t r i   e t   al . ,   [ 1 5 ]   h av e  d i s c u s s e d ,   h o w   b l o c k c h a in   c an   b e   u s e d   t o   en s u r e   t am p e r   r es is t an t   v o t es .   B l o ck ch a in   p l at f o r m   a ls o   en s u r es   th a t   t h e   d a t a   is   s t o r e d   a c cu r a te ly ,   p e r m an e n t ly   an d   t r a n s p a r en t ly .   A s   th e   b l o ck ch a in   t e ch n o l o g y   i s   s t i ll   in   t h e   d e v e l o p m en t   s t ag e ,   t ec h n o l o g y   im m a tu r i ty   i s   th e   o n ly   m a tt e r   o f   c o n c e r n .   I r h am   et   a l . ,   [ 1 6 ]   h av e   p r o p o s e d   a n   e - v o t in g   s y s tem ,   b as e d   o n   h as h in g   an d   p u b l i c  k ey   in f r a s t r u c tu r e .     I n   th is   s y s t em ,   th e   k ey   g en e r a t i o n   p r o c e s s   d e p en d s   o n   a  ce n t r al   au th o r i ty .   I n   th e   v o t in g   p r o c e s s ,   th e   c en t r a l   a u th o r ity   n ee d s   t o   en c r y p t   th e   b a l l o t   w ith   th e   c o r r es p o n d in g   p u b l i c   k ey   o f   e a ch   v o t e r ,   w h o   t h en   n e e d   t o   d e c r y p t   t h e   b al l o t   t o   c as t   v o t e .   T h e   p r o p o s e d   s y s tem   d e p e n d s   o n   ce n t r a l   au th o r i ty   a t   e v e r y   s t ag e   o f   t h e   v o ti n g   p r o c es s ,   u s in g   b l o c k c h a in ’ s   d is t r i b u t e d   le d g e r   p r o p e r ty   an d   th e   s m a r t   co n t r a ct   a   b e t t e r   s o lu ti o n   ca n   b e   p r o v i d e d .   H a o   e t   a l . ,   [ 1 7 ]   h av e   p r o p o s e d   a n   en d   t o   en d   v e r ifi a b l e   c l a s s r o o m   v o tin g   s y s t em ,   w ith o u t   an y   i n te r m e d i a t e  t al ly in g   au th o r i ty .   F i at   Sh am i r   t r an s f o r m at i o n   an d   DR E - i  p r o t o c o l   a r e   u s e d   t o   e n s u r e   c o n c e al in g ,   r e v e al in g   a n d   s e lf   t al ly in g   p r o p e r ty   in   th e   s y s t em .   T h e   s ec u r ity   o f   th e   s y s t em   ca n   b e   f u r th e r   im p r o v e d   b y   m an ag in g   th e   i d en t i ty   o f   th e  v o t e r .   A b o u   e t   a l . ,   [ 1 8 ]   h av e   d is cu s s e d   th e   a p p l ic a t i o n s   o f   b l o ck c h a in   in   a   d if f e r en t   d o m a in .   T h i s   w o r k   h e l p s   t o   u n d e r s t an d   t h e   p r o m in e n t f e a tu r es   o f   b l o ck ch ai n   l ik e  p r i v a cy ,   im m u t a b l e ,   d e c e n t r a l i z e d   an d   c o n fi d en t ia l ity .   I t   a ls o   a s s is ts   in   c o m p r eh en d in g   h o w   t h e s e   f e at u r es   c an   b e   u s e d   t o   p r o v i d e   a   s o lu t i o n   t o   t h e   v a r i o u s   b u s i n es s   p r o b l em   in   t o d ay ’ s   w o r l d .     Y in in g   e t   a l . ,   [ 1 9 ]   h av e   p r o p o s e d   a   p ay m en t   s ch em e ,   u s i n g   th e   E th e r e u m   b l o ck ch ai n   p l a t f o r m .     T h e   s ch em e   a im s   t o   en s u r e   r e li a b l e   s e r v i c e   o v e r   t h e   u n r e l i a b le   n etw o r k .   B l o ck ch a in ’ s   d is t r ib u t e d   l e d g e r   f e a tu r e   g u a r an t e es   d i s t r i b u t e d   v e r ifi ca t i o n .   T h e   s m a r t   c o n t r a c t   in c l u d es   b u s in es s   l o g i c   f o r   s er v i c e   m an ag em en t .   A s   in   E t h e r e u m ,   s m a r t   c o n t r a c ts   a r e   t r e at e d   a s   a   t r an s a c t i o n ,   its   s ec u r i ty   is   en s u r e d .   K u m a r   e t   al . ,   [ 2 0 ]   h av e  r e c o m m en d e d   a   m eth o d ,   u s in g   a   m o d ifi e d   R SA   a lg o r i th m   t o   p r o v i d e   d a ta  s e cu r i ty .   T h e   m a in   f o c u s   o f   th is   m e th o d   w a s   t o   en s u r e   d a ta   c o n fi d en ti a l ity   b u t   u s in g   b l o c k ch a in   t ec h n o l o g y ,   w e   c an   en s u r e   b o th   t h e   c o n fi d e n t i a li ty   o f   d a t a   b u t   a l s o   d a t a   i n te g r i ty .   A d am u   et   a l . ,   [ 2 1 ]   h a v e   p r o p o s e d   a   f r am e w o r k   f o r   s e cu r in g   an   e l e c t r o n i c   m e d i c a l   r e c o r d   s y s tem .   T h is   w o r k   in v o lv es   c o m p a r i n g   d if f e r en t   PH P  f r am ew o r k s   w i th   r es p e c t   t o   i ts   s e cu r ity   f e atu r e s .   T h e   w e b   ap p l i c a t i o n   f o r   t h e   el e c t r o n i c   m e d i ca l   r e c o r d s   w as  d e v e l o p e d ,   u s in g   L r av e l   PH P f r am e w o r k .   T h e   f o c u s   o f   t h i s   w o r k   w a s   o n   u s e r   au th en ti c a ti o n .   T h e   I PF S ,   t o g e th er   w ith   b l o ck ch a in   te ch n o l o g y   c an   im p r o v e   th e   s e cu r i ty   r e q u i r em en t   o f   th e   a p p l i c a ti o n .     Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       A   d ec en tr a liz ed   co n s en s u s   a p p lica tio n   u s in g   b lo ck ch a in   ec o s ystem  ( C h eta n a   P u ja r i)   6403   3 . 1 .    R e s e a r ch   g a p s   I n   th e   li t e r a tu r e   s u r v ey ,   e x i s t i n g   a p p r o a ch es   u s e d   f o r   d ec i s i o n   m ak in g ,   an d   th e   im p o r t a n c e   o f   b l o c k ch a in   a r e   d i s cu s s e d .   B a s e d   o n   w h i ch ,   t h e  f o l l o w in g   r e s e a r ch   g a p s   a r e   i d en t ifi e d ,   w h i ch   n e e d s   f u r th e r   i n v es t ig at i o n :   -   I d e n t ity   m an ag em en t   in   th e   d ec i s i o n - m ak in g   a p p l ic a t i o n .   -   S e cu r in g   th e   b u s in ess   l o g i c ,   w h i ch   in clu d e s   r u l es   an d   c o n s t r ai n ts   t o   b e   u s e d   in   d e c is i o n   m ak i n g .   -   T h e   t r u s tw o r th i n e s s   o f   t r an s a c ti o n s   in   d e c en t r al i z e d   d e ci s i o n - m ak in g   a p p l ic a t i o n s .   -   V o i d   T y p e:   T h e o r y   a p p li c a ti o n   v o i d   is   o b s e r v e d   in   th e   l i te r a tu r e   s u r v ey .     3 . 2 .     P r o b l em   s t a t em en t   R es e a r ch   s h o w s   th a t  en s u r in g   th e  t r u s tw o r th in es s   o f   th e   d at a   an d   i d e n t i ty   m an ag em en t  a r e   t h e  k ey   r e q u i r em en ts   o f   a n y   d e c i s i o n - m ak in g   p r o c es s .   B l o c k ch a in   t e ch n o l o g y   p o w e r e d   w ith   I PF S   en s u r e s     t h e  av a i la b i l ity   an d   r e l ia b i l ity   o f   an y   d at a   [ 1 2 ,  2 2 ] .   T h is   w o r k   u n d e r t ak e s   a   d es c r i p ti v e   s t u d y   t o   u n d e r s t an d     t h e   E th e r eu m   b l o ck c h a in   e c o s y s tem .   T h e   p r o b l em   i d e n t ifie d   i n   th i s   w o r k   is   t o   d ev e lo p   a   d e c e n t r al i z e d   a p p l i c a t i o n   f o r   d e c is i o n   m a k in g   u s in g   th e   b l o ck ch ai n   ec o s y s t em .   T r a n s a ct i o n s   in   th e   a p p lic a t i o n ,   m u s t   a d h e r e     t o   r u l es   a n d   c o n s t r a in ts   d efi n e d   a s   a   b u s in es s   l o g ic .   F o ll o w in g   a r e   th e   r es e a r ch   q u est i o n s   i d en t ifi e d   f o r     t h e   g iv en   p r o b l em .   -   H o w   t o   s ec u r e   th e   d a t a   f r o m   t am p e r in g ?   -   H o w   t o   en s u r e   t h e   s e cu r ity   o f   th e   b u s i n e s s   l o g i c ?   -   H o w   t o   en s u r e   i d e n t i ty   m an ag em en t   i n   th e   d e c en t r al i z e d   a p p lic a t i o n ?   -   W h a t   a r e   th e   a c ti v i t ie s   i n v o lv ed   i n   f o r m u l a ti n g   C o n s en s u s   a p p l i c a t i o n ?     3 . 3 .     O b j e c t i v e   a nd   r a t i o n a l e   -   O b je c t i v e:   D ev el o p   a   s e cu r e   d ec e n t r a l i z e d   c o n s en s u s   a p p l i ca t io n   u s in g   th e   E th e r eu m   b l o ck ch a i n   ec o s y s t em .   -   R a ti o n al e :   D at a   t am p e r in g   a n d   i d e n t ity   m an ag em en t   a r e   a  m a jo r   c o n c e r n   f o r   a n y   a p p l ic a t i o n   u s e d   f o r   d e c i s i o n   m ak in g .   T h e   p r o p o s e d   w o r k   a im s   t o   o v e r c o m e  t h e   a b o v e   d i s c u s s e d   i s s u e s   b y   d ev e l o p in g     a   d e c en t r al i z e d   a p p l i c at i o n ,   w h e r e  u s e r   c an   r ely   o n   th e  t r u s tw o r th i n ess   o f   th e   d at a   an d   b u s i n e s s   l o g i c .     W h i ch ,   in   tu r n ,   h e l p s   t o   b u i l d   th e   t r u s t   o n   th e   c o n s e n s u s   m ec h a n is m   u s e d .       4.   RE S E ARCH   M E T H O D   T h e  o v er all  d escr ip tio n   o f   th e  m eth o d o lo g y   t h at  i s   f o llo wed   f o r   d ev elo p m e n t  o f   t h e  d ec en tr alize d   co n s en s u s   ap p licatio n   is   d i s cu s s ed   in   t h is   s ec tio n .     4 . 1 .     Dec ent ra lized  co ns ens u s   a pp lica t io n a rc hite ct ure   T h e  Fig u r e  3   r ep r esen ts ,   th e  a r ch it ec tu r e  d i ag r am   f o r   d ec en t r al ize d   co n s en s u s   ap p l ica ti o n   p r o p o s e d .   T h e  cli en t - s id e  a p p lic ati o n ,   i . e,   th e  f r o n t  en d   is   b u ilt  u s in g   HT ML ,   C SS ,   an d   J av asc r i p t  an d   is   h o s te d   in   th e   d is t r i b u te d   n etw o r k   u s in g   I P FS .   A t th e  b a ck en d ,   E th e r eu m   b lo ck ch ain   n etw o r k   is   u s e d   to   en s u r e   d is t r i b u t e d   s er v e r   a r ch it ec tu r e ,   w h er ein   ea ch   n o d e  in   th e  b l o ck ch ain   n e t w o r k   m ain tain   th e  co p y   o f   th e  le d g er   an d   s m ar t   co n t r a ct .   I n   th e  p r o p o s e d   w o r k ,   G an ac h e   is   u s e d   w h ich   p r o v i d es  u s   w ith   1 0   t est  ac c o u n ts   a n d   a  p r iv a te  k ey   f o r   ea ch   a cc o u n t.  T h e  b u s in ess   lo g ic  o f   c o n s en s u s   ap p l ic ati o n   is   w r itten   in   a   s m ar t  c o n t r a ct  u s in g   s o li d i ty   lan g u ag e.   A s   a  s m ar t  co n t r a ct ,   o n c e  d ep lo y ed   ca n n o t  b e  ch an g ed ,   h en ce   t est  c ases   a r e  w r itten   u s in g   s o li d i ty /   jav asc r i p t   lan g u ag e  t o   t est  s m ar t  co n t r a ct  b ef o r e  d e p l o y in g .   I n   o r d e r   t o   en s u r e   p r o p er   o r g an iz ati o n   o f   th e  a p p lic ati o n   an d   it’ s   s m o o th   w o r k in g   a  t r u f fl e  f r am e w o r k   is   u s e d ,   w h ic h   en s u r es  p r o p e r   s t r u ctu r in g   o f   th e  p r o p o s e d   w o r k   alo n g   w ith   th e  f ac ili ty   to   co m p ile ,   m ig r ate ,   test   an d   d ep lo y   th e  s m ar t c o n tr a ct .   On ce   a  s m ar t   co n t r a ct  is   b u ilt ,   th e   g en e r at e d   J SO N  o b j e ct  is   u s e d   b y   th e  w eb 3   o b j e ct ,   t o   en s u r e a  s m o o th   i n ter ac ti o n   b etw ee n   th e  b l o ck ch a in   n o d e   an d   th e  c l ien t - s id e  ap p l ica ti o n .   Fin al ly ,   t h e  Me tam ask   is   u s e d   as a n   a d d - o n   f o r   th e   b r o w s er   w h ich   ac ts   as   an   in te r f ac e  b e t w ee n   th e  w eb   a p p lic ati o n   an d   t h e  b l o ck ch a in   n o d e.   T h e  Fig u r e  4   d ep icts ,   th e   o v er all  u s e - ca s e  d iag r a m   f o r   a  co n s e n s u s   ap p licatio n .   T h e  co n s en s u s   ap p licatio n   co n s is ts   o f   t w o   ac to r s   r eq u ester   an d   r esp o n d er .   T h e  r eq u ester   is   th e  o n e  w h o   o n ce   au t h en t icate d   ca n   ad d   s u g g e s tio n   a n d   ca n   v i e w   t h e  s u g g e s tio n   s tat u s .   O n   t h e  o th er   h a n d ,   th e  r esp o n d er   c an   v ie w   th e  r eq u e s t  lis t a n d   g iv e  a  r esp o n s e,   i.e ,   th e  au th e n ticated   r esp o n d er   ca n   ac ce p t o r   r e j ec t th e  s u g g est io n .   T h e  Fi g u r e  5   r ep r esen ts ,   th e  fl o w c h ar t  f o r   co n s e n s u s   ap p licatio n .   I n   th is   ap p licat io n ,   o n ce     th e  r eq u es ter   ad d s   th e  s u g g esti o n ,   t h e  r eq u es ter   is   a u t h en ticated .   I f   th e  r eq u e s ter   i s   an   i n v alid   u s er ,     a  cu s to m   m e s s a g e   is   d is p la y e d ,   w h er ea s ,   f o r   th e  v al id   r eq u ester ,   th e  s u g g e s tio n   ad d ed   is   b r o ad ca s ted   t o   all    th e  r esp o n d er s   in   t h e   n et w o r k .   On   r ec eiv in g   th e  r eq u e s t  t h e  r esp o n d er   ca n   ac ce p t  o r   r ej ec t  th e  s u g g es tio n .   On ce   all  th e  r esp o n d er s   g i v e  th eir   co n s e n s u s ,   th e  s u g g e s tio n   is   ac ce p ted   o r   r e j ec ted   b ased   o n   th e  co n d itio n   th at,   i f   th e   co u n t  o f   ac ce p ta n ce   is   g r ea ter   t h a n   t h e  co u n t  o f   r ej ec tio n ,   t h en   t h e  s u g g esti o n   is   ac ce p ted   else     it is   r ej ec ted .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 ,  Decem b er   2020   :    6 3 9 9   -   6 4 1 1   6404       Fig u r e  3 .   Dec en tr alize d   co n s e n s u s   ap p licatio n   ar ch itect u r e       Fig u r e  4 .   Usecase  d iag r a m   f o r   co n s en s u s   ap p licatio n             Fig u r e  5 .   Flo w c h ar t f o r   co n s e n s u s   ap p licatio n       T h e  A l g o r ith m   1 ,   d ep icts   th e  fl o w   o f   ev e n t s   d u r i n g   th e   d ec is io n - m a k in g   p r o ce s s .   O n ce     th e  b lo ck c h ai n   ec o s y s te m   i s   s et  u p ,   T h e  m e m b er   is   a u t h en t i ca ted   u s i n g   th e   cr ed en tial s   an d   h is / h er   et h er eu m   ac co u n t  i s   v er i fi ed .   On   s u cc e s s f u l  a u t h e n ticatio n ,   th e  m e m b er   ca n   p o s t   h is   s u g g est io n   a n d   th e  d ec i s io n   i s   m ad e  b ased   o n   th e   r esp o n s e  o f   o th er   m e m b er s   i n v o lv ed   i n   d ec is io n   m ak in g .   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       A   d ec en tr a liz ed   co n s en s u s   a p p lica tio n   u s in g   b lo ck ch a in   ec o s ystem  ( C h eta n a   P u ja r i)   6405   A l g o r ith m   1   C o n s e n s u s   A p p li ca tio n   Require: Ethereum account, blockchain ecosystem   Ensure: Authentication, confidentiality and data integrity   1: Hos t client application in IPFS network   2:  if   memberName   = =  username   AND  memberPassword   = =  password   then   3:   if   validEthereumAccountANDbalance   >  transactionFees   then   4:     if   choice   is newsuggestion  then   5:       addSuggestion   6:     else   { choice   is viewDecision}   7:       if   rejectCount   ≥  acceptCount   then   8:         RejectDecision   9:       else   10:         AcceptDecision   11:       end if   12:     end if   13:   end if   14:  end if     4 . 2 .     I m ple m e nta t io n det a ils   T h e  b lo ck ch ain   ec o s y s te m   u s ed   w i th   a n   e m p h asi s   o n   d if f er e n t  to o ls / u ti liti es /tech n o lo g ies  f o r     th e  d e v elo p m e n t o f   p r o p o s ed   ap p licatio n   is   d escr ib ed   in   th e  f o llo w in g   s u b s ec tio n s .     4 . 2 . 1 .     B lo ck cha in  ec o s y s t e m  us ed   T h e  F g u r e  6 ,   r ep r esen ts   th e  o v er v ie w   o f   t h e  p ee r   to   p ee r   b l o ck ch ai n   n et w o r k ,   w h er e  ea ch   n o d e  ac t     as  a   p ee r   at  th e  s er v er - s id e.   T h e  clien t  ap p licatio n   ca n   co m m u n ica te  w ith   t h e  eth e r eu m   s er v er   u s i n g     th e  w eb 3   lib r ar y .           Fig u r e  6 .   Dec en tr alize d   ap p licatio n   ar ch itect u r e       a.   E t here u m     E th er eu m   is   th e   o p en   s o u r ce ,   d is tr ib u ted   b lo ck c h ai n   p r o to co l.  I t  p r o v id es  E th er eu m   V ir tu a l      E n v ir o n m e n t   a ls o   ca lled   E V M.   E VM   en ab le s   u s   to   co m p il e  an d   d ep lo y   t h e  s m ar t  co n tr a ct  to   th e   b lo ck c h ain .   E th er eu m   i s   a  p r o to co l  u s ed   to   d ev elo p   a  d ec en tr alize d   ap p l icatio n   w ith   th e  p o w er   o f   s m ar t  co n tr ac ts .   C u r r en tl y ,   E t h er u m   u s es p r o o f   o f   w o r k   f o r   co n s e n s u s   [ 1 2 ] .     b.   So lid it y   So lid it y   is   th e   o b j ec t - o r ien ted   p r o g r a m m in g   lan g u ag e   u s ed   ex clu s i v el y   to   w r ite   a  s m ar t   c o n tr ac t  f o r   E th er eu m .   I t  is   th e  co m b i n atio n   o f   j av ascr ip t   an d   j av a  lan g u ag e.   So lid it y   en ab le s   u s   to   w r i te  r u les,   co n s tr ai n t ,   an d   b u s i n es s   lo g ic  i n to   th e  s m ar t  co n tr ac t.  T h e  s m ar t  c o n tr ac t  s er v e s   as  a n   a g r ee m en t  a m o n g   d if f er e n t   s tak e h o ld er s   an d   o n ce   it ’ s   d e p lo y ed   i n to   t h e  b lo ck ch a in ,   al l  th e  n o d es  i n   t h e  b lo ck ch a in   n et w o r k   ad h er e  to     th e  s m ar t  co n tr ac t.  T h e  r e m ix   is   th e  m o s t  p o p u lar   I DE   u s e d   to   w r ite  a  s m ar t  co n tr ac t.  I t   en ab les   to   ex ec u te   a  s m ar t  co n tr ac t   in   t h e  te s t  e n v ir o n m e n t   an d   al s o   to   d ep l o y   it  in   th e   b lo ck c h ain   n e t wo r k s   [ 1 2 ] .   Fig u r e  7   d ep icts   th e  r em ix   i n ter f ac e.   T h e  lef t  s id e  is   th e  p r o j ec t  ex p l o r er .   T h e  ce n ter   a r ea   is   to   w r ite   s o lid it y   p r o g r a m   an d   th e  ar ea   at  th e  r i g h t  s id e  co n tain s   o p tio n s   to   co m p ile,   ex ec u te  an d   d ep lo y   a  s m ar t   co n tr ac t.       c.   T ruf fl e   T r u f fl e  i s   th e  f r a m e w o r k   u s ed   to   d ev elo p   a  d ec en tr alize d   ap p licatio n   b ased   o n   E th er eu m   p latf o r m .     It   p r o v id es  t h e  e n v ir o n m en t   f o r   co m p ili n g ,   tes tin g   an d   d ep lo y i n g   a   s m ar t  co n tr ac t.  I t   also   p r o v id es   an   in ter f ac e   to   lin k   t h e  s m ar t  co n tr ac t  w i th   e x ter n al  w eb ,   m o b il e  o r   a  co n s o le  b ased   ap p licatio n .   Fig u r e   8   d ep icts   th e  tr u f fl e  s tr u ct u r e.   A ll  t h e  s m ar t  co n tr ac ts   to   b e  u s ed   in   th e  ap p licatio n   w ill  b e  s to r ed   in   th e  co n tr ac t  f o ld er ,   w h er e  t h e  co n tr ac t s   ar e  w r itte n   u s i n g   s o lid it y   la n g u a g e.   On ce   th e  s m ar t  co n tr ac t  i s   co m p iled ,   th e  g en er ated   J SON  fi le  w ill b e  s to r ed   in   th e   b u ild   f o ld er .   T h e  m i g r atio n   f o ld er   co n s is ts   o f   Mig r atio n . s o l  file,  w h ic h   co n s is t s   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 ,  Decem b er   2020   :    6 3 9 9   -   6 4 1 1   6406   o f   all  n ec es s ar y   ar tif ac ts   to   d ep lo y   t h e  s m ar t  co n tr ac t.  B ef o r e  th e  s m ar t   co n tr ac t  i s   ac tu all y   d ep lo y ed ,   it  is   fi r s t  test ed   u s i n g   tes t  ca s es  s p ec i fi c   to   t h e  co n tr ac t   a n d   th e   tes t   ca s es   ar e   w r itte n   i n   . j s   o r   . s o l   la n g u a g e.   T h ese  test   ca s es  ar e  s to r ed   in   th e   test   f o l d er ,   an d   fin all y ,   all  files   r elate d   to   f r o n t  e n d   ap p licatio n   li k e   HT ML ,   C S S  o r   j s   files   ar e  s to r ed   in   t h e  s r c  f o ld er .   Usi n g   tr u f fl e  f r a m e w o r k   e n a b les  a  d ev elo p er   to   f o llo w   a   s y s te m atic  ap p r o ac h   w h ile  d ev elo p i n g   a  d ec en tr aliz ed   ap p licatio n   [ 1 2 ] .           Fig u r e  7 .   R e m i x   I DE           Fig u r e  8 .   T r u f fl e  s tr u ct u r e       d.   G a na che   Gan ac h e  i s   th e  test   E t h er eu m   b lo ck ch ain   w h ich   p r o v id es  1 0   test   E h er eu m   ac co u n ts   w it h   a  p r iv ate  k e y   a n d   ea ch   ac co u n t  w it h   th e  b alan ce   o f   1 0 0   eth er   to   s tar t  w it h .   Gan ac h e  en ab le s   a  d ev elo p er   to   test     th e  s m ar t   co n tr ac t  b y   d ep lo y i n g   it  to   th e  test   b lo ck c h ain .   Gan ac h e  i s   GUI   b ased ,   h en ce   d ev elo p er   ca n   v ie w   w h e n   th e  s m ar t  co n tr ac t  is   d ep lo y ed   an d   tr an s ac tio n s   ar e  ex ec u ted .   On ce   th e  ap p licatio n   is   test ed   s u cc es s f u l l y   in   th e  lo ca l te s t b lo ck ch a in ,   it  ca n   th e n   b e  d ep lo y ed   to   th e  ac tu al  n e t w o r k   [ 1 2 ] .     e.   Dec ent ra lized  a pp lica t io n   ( DApp)   I t  is   s i m ilar   to   t h e  tr ad itio n al  ap p licatio n   to   s o m e  e x te n t  b u t  i t  i s   ta m p er   r esi s ta n t   an d   m o r e   tr u s t w o r t h y .   J u s t  l ik e   a  tr ad iti o n al  w eb   ap p licatio n ,   t h e  D Ap p   also   h as  a   f r o n t  b u t  i n s tea d   o f   th e   ce n tr alize d   b ac k en d   i n   D A p p   th e  n o d es in   a  d is tr ib u ted   b lo ck ch a in   n et wo r k   ar e  u s ed   as b ac k e n d .   T h e  in ter ac tio n   b et w ee n   th e  f r o n t  a n d   th e  b ac k en d   is   e n ab led   u s i n g   p o w er f u l  w eb 3   f ea tu r es   [ 1 2 ,  22 ,  2 3 ] .   Fig u r e  6   d ep icts   th e  o v er all   ar ch itect u r e  o f   d ec en tr alize d   ap p licatio n .     Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       A   d ec en tr a liz ed   co n s en s u s   a p p lica tio n   u s in g   b lo ck ch a in   ec o s ystem  ( C h eta n a   P u ja r i)   6407   f.   I P F S   A   ce n tr alize d   s y s te m   u s u a ll y   m an a g ed   b y   a   s i n g le  co m p a n y ,   h e n ce   t h e  u s er   h as  to   d ep en d   o n   t h is   co m p a n y   to   g ai n   ac ce s s   to   t h e   d ata.   T o   av o id   th is   d ep en d en c y   o n e  ca n   u s e  i n ter p lan etar y   f ile  s y s te m   ( I P FS ) .   I P FS   h elp s   to   m a k e  t h e  w eb   ap p licatio n   co m p letel y   d is tr i b u ted .   I t  w o r k s   s i m ilar   to   b it  to r r en t.  I P FS   u s e s   co n ten t - b ased   ad d r ess i n g   in s te ad   o f   lo ca tio n - b ased   ad d r ess in g .   I n   co n ten t - b ased   ad d r ess i n g ,   a  u s er   j u s t   n ee d s   to   s p ec if y   w h at  co n te n t  i s   r e q u ir ed   w h er ea s ,   i n   lo ca tio n - b ased   ad d r ess in g ,   th e   u s er   n ee d s   to   s p ec if y   t h e  I P   ad d r ess   o r   th e  d o m ai n   ad d r ess   f r o m   w h er e  th e  co n ten t  is   to   b e  d o w n lo ad ed .   I n   I P FS ,   h as h i n g   i s   u s ed   to   ad d r ess   th e  co n te n t h e n ce   en s u r e  a  ta m p er - r es is ta n t c o n te n t   [2 3 ].     Fig u r e  9   d ep icts   t h e  I P FS   s t r u ctu r e.   Up   to   2 5 6 KB   o f   d a ta  ca n   b e  s to r ed   in   ea c h   I P FS   o b j ec t.    I f   t h e  s ize   e x ce ed s ,   t h e n   d ata  c an   b e  s p lit  u p   a n d   s to r ed   in   d i f f er en t   I P FS   o b j ec t,  an d   a  n e w   e m p t y   I P FS   o b j ec t   is   cr ea ted   w it h   a  lin k   to   a  d if f er en t  p ar t  o f   th e  d ata.   I P FS   u s es  a  Me r k le  tr ee   s tr u ct u r e  to   s t o r e  d ata.   Sim ilar   to   th e  b lo ck ch a in   o n ce   d ata  is   s to r ed   it c an n o t b e  ch an g ed ,   in s te ad   v er s io n i n g   i s   u s ed   to   r ef er   to   n e w   d ata.           Fig u r e  9 .   I P FS   s tr u ctu r e       g.   M e t a m a s k   Me ta m as k   ac ts   as  a  b r id g e  b et w ee n   th e  d ec en tr alize d   w e b   ap p licatio n   an d   E th er eu m   b lo ck ch ai n   n o d e.   I t  is   in cl u d ed   as  an   ad d o n   in   c h r o m e,   fi r e f o x ,   an d   o t h er   b r o w s er s .   O n ce   co n fig u r e d ,   it  ca n   b e  u s ed   to   id en ti f y   t h e  b lo ck c h ain   ac co u n t  h o ld er   an d   en ab les a  u s er   to   s ig n   th e  tr a n s ac t io n   u s i n g   t h e  p r iv ate  k e y .       5.   RE SU L T S   AND  D I SCU SS I O N   As  m en tio n ed   ea r lier   i n   th e   p ap er ,   Gan ac h e  i s   u s ed   i n   o r d er   to   d ev elo p   an   ap p licatio n   u s in g   te s t   b lo ck ch ai n .   Fi g u r e  1 0   r ep r esen ts ,   1 0   test   ac co u n ts   w i th   its   p r iv ate  k e y ,   w h ich   ca n   b e  u s ed   to   tes t  a n   ap p licatio n .   Gan ac h e  al s o   p r o v id es  u s   w i th   t h e  GUI ,   to   v ie w   tr an s ac tio n   s tat u s ,   b lo ck   cr ea tio n   s tat u s ,     an d   ev en t  lo g s   as   s h o w n   in   Fi g u r e  1 1 ,   Fig u r e  1 2 .   T h e  p r iv ate  k e y   ass i g n ed   f o r   ea ch   ac co u n t  is   u s ed   f o r   d ig ital   s ig n i n g   t h e   tr an s ac tio n .   T h e  u s er   is   au th e n tica ted   b ased   o n   t h e  ac co u n t  ad d r ess .   Fi g u r e  1 3   r ep r esen ts ,   th e  GUI   to   ad d   a   s u g g esti o n .   O n ce   t h e  r eq u ester   ad d s   a  s u g g esti o n ,   t h e  tr a n s ac tio n   is   ex ec u ted   a s   s h o w n   in   Fi g u r e   1 4 .   Fo r   ea ch   tr an s ac tio n ,   a  f ee   is   ca l cu lated   b ased   o n   in s tr u ctio n s   to   b e  ex ec u ted ,   ea ch   tr a n s a ctio n   is   v er i fied   an d   v alid ated   b y   t h e  m i n er   b ef o r e  it  is   ex ec u ted ,   an d   o n ce   t h e  co n s e n s u s   i s   r ea ch ed   it  i s   lo ck ed   in   t h e  b lo ck ch ai n .   Hen ce ,   th i s   p r o ce s s   en s u r ed   th e  v alid it y   a n d   in te g r it y   o f   t h e  t r an s ac tio n s .   On   v ie w in g   t h e  r eq u est  li s t,  th e  r esp o n d er   ca n   ac ce p t,  r e j ec t  o r   k ee p   th e  r eq u est  in   t h e  p en d in g   s tate   as   s h o w n   in   Fi g u r e  1 5 .   On ce   r esp o n d ed   a  tr an s ac tio n   is   ex ec u ted   to   u p d ate  t h e  c h an g es.  Al l  th e  c h a n g e s   d o n e   to   th e  d ata  ar e  s to r ed   as  tr an s ac ti o n s   i n   t h e  b lo ck c h ai n ,   h en ce   en s u r e  d ata  p r o v en a n ce .   T h is   h elp s   to   r eso lv e   th e   co n fl ic ts   i n   th e  f u tu r e  a n d   o v er co m es t h e  p r o b lem   o f   n o n - r ep u d iatio n .   T h e  ex is ti n g   d ec is io n - m a k i n g   s y s te m ,   r el y   o n   a   ce n tr alize d   s er v er   o r   a  t h ir d - p ar t y   s er v er .   T h e  u s er s   p ar tici p atin g   i n   d ec is io n - m a k in g   n ee d   to   tr u s t  t h e  o n e  w h o   o w n s   t h is   s er v er   [ 2 4 ] .   I f   th e  o w n er   w a s   co m p r o m is ed   t h e n   t h e   d ata   in   th e  s er v er   m a y   h a v e  ta m p er ed   [ 2 5 ] .   I n   th e   p r o p o s ed   s y s te m ,   th e  tr u s t w o r t h i n es s   an d   d ata  in teg r i t y   i s   en s u r ed   b y   th e  p r i m ar y   p r o p er ty   o f   t h e  b lo ck ch ai n   tech n o lo g y .     Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 ,  Decem b er   2020   :    6 3 9 9   -   6 4 1 1   6408       Fig u r e  1 0 .   Gan ac h e  test   ac co u n t           Fig u r e  1 1 .   T r an s ac tio n   s tat u s           Fig u r e  1 2 .   B lo ck   cr ea tio n   s tatu s   Evaluation Warning : The document was created with Spire.PDF for Python.