0% found this document useful (0 votes)
8 views

Blockchain Asgn 2

Assignment of blockchain

Uploaded by

Prashant Kawathe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
8 views

Blockchain Asgn 2

Assignment of blockchain

Uploaded by

Prashant Kawathe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
Vage No, MANIARA CHARTTARLE PRUST aoe Not ) RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI TMU VERSOVA LIN NONE AVES) MUUBIIAL = #10, _ hal_0. Pandey jks stuetuve a £.is the software pragrans | imipiimentiag a sot OF nies or condition and _aperales [lob tep Rela backehatc hs —|_Mikese.set of nites ave! Used’ by vavieUs parties 10 es i that smart contract to trans-fer digttal asseses bet ce: them - E Of blockchatn * Pincled debate @ periniss) ont thal ryewve a frecfsa sequence of eYents to happen +0 trigger the agreement oF #rms stated Ye 4 iN'sindrt comractns Ind Fy how dor €9.. EF John Warts +0) purchase’ plece oF lands from aril'th, Se there wre Verious iniedal 14 party ‘government: agencies. TF ay these concerned’ aviiortises ‘an dr Bloc th 335 then at) yules Ot conditions of Valid Sale could be contract: TF Tohr USEN¥ to bby” ldAad™ in 4060 UE (99 sMart contreof 1201 Frans ator ‘eboyidibe! Neitleleited Byatt! Memibdrss The nede algc : verifies ties Yeal ousner leis Mth er nok Paul government taxes [arr clea, encumbrance ig Yall) & Tobin Mie credentials 10 by He land.’ : — a implemented _lncmart S ee OLOGY, MU RAJIV GANDHI INSTITUTE OF TECHN OLOC "™] JUHU VERSOVA LINK ROAD, VERS Styuctore_of. bConts In etnereunm blockchain, transaction ave iroplern ented Via sm art contract, which is acivated by dataas Inpt Prom externally acount aviometically. Basic structure: [smart contrac [messages to offer conrearts Jextenalty TTransau” | Gaive) Gddress)_| Perrone owned Account _CDaka value) eon Gai Geretons)| events EQOA gNes input In form oF transaction +o smart contract: A smort contract lc a du program that redd es of & Rlockchain & it has ts unique address Ib comains a set_ of executable. functions & state Varlokles Th gebs execute} when transactions are. made te these Functons, 2 When Function exewed the state variables. fn contwatt chonges depending op on. *the..LQgie implemerrted th the foncten. Ze is vortHen @ NighcleVel languages: lite sold ty. Whot are different dota types. supported ini Soledtty? Basic dota types sim solidity sas t Bodleance@ oo)? Boolean Nalue is .efther ive or false TQn0b),5 B&Cond), lcor), =scqqu), [= Cnot equal) : b Signed CInk)_ unsigned Culint) integers: ‘These integers detlared im increments of shits fom ints ED Ulnt2s6. whthovt _suPphe slzg, 266 bit Yvantitl es ort vsed +e mmateh the word sre of the evm: ot To MANIARA CHARITABLE TRUST P88*N- +) RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI JUHU VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI $3, Od. Eh Frped point CAKed) wn Fived) Fixed—polnt numbers, detlored 2th Clu)Fived MXN) where mio ci2e in bits Clncvemens or ¢ up to 266) and N is the number of dectmals after point upto je) eg. wfixed 2x2 Adev essi— ee TE cortafns 2o-byte Valve tat represents Sl2e o¥ Ethereum addy ess- Bytcatray cfixed (dy nomic) +— Fired Sta, dectored with myles | to byleG2 Whereas Vosiabled-siee arrays OF bytes teclored lth bytes or ShiNgs- enum! User-defined +ype for enumerating discrete valves: enum Nome§ Label, lake) 2)+ on 6) |_Array:- Arrayio# anytype Fixed/dynamic. e) unit 2CICSJ i Strvcti- User defined data containers for grovping Variables - Struck Name CTypely Ty e2,- -- Mapping: Hash key as Valve pasts jn hash lockup table- Mapping CFey—by pa Value gp) Nome- 2 Time unter Seconds, ninttes hours, days used as suf ffees- vettx Forloase —UAFE tedel a r Page No. MANJARA CHARITABLE TRUST RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MU: JUIIU VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI 53 Jorhat are function yisibl (My in Soltelity? : olidy supports. all jeopostantnand nece aby faokures 4:0 vote modular cade. using: FuncHons:+ _L Pins, we pave. to define 2 Aen use. fonctton. Lt |s deffnah, > be Fonction fore! enmeCPormolertist)scope returnC i & eheternents “ yopa ¢ |The following tery Guar . |__| Visi Mijn o Banckion apertitsy be..2 ae filed ae [ee — |_Vislble -to the ealler Ether sPiord (ndernad ore yternol- (| _Pobitest- aan Pe public: is the defo ts & these “pollo fonctions are can be called by offer contracts Or 60A Lransacttons or From WHIND the contract-“They are Visible trono jnferrol_ 2 eterno! conthatts, means can be.cotled inside. ortoUtslde Contracts As this Function is Visible +o public, security is concem there- Db) | Privote— _ Private Ponchions are visible inside.the Game +ype contract are like fndernel Features. They cannot be cotled by derived contrast © | exteroay i ‘ Lt is simflar+o pobllo funct(ons ; cannot be catled from within the contract unless explictty preFfted iol this teyweord: External [fencers use yuible -to public function & cabled outside Contract nly - ()| Aotercots— FE sfrilad to prevate & accesubie frre © A n-the conhralt : Thor ato. » [Ret celled by crother contra Infernal rcHursare VUBTble -te con tavt- Retrarchy they Con be dutied triside own tract Or con theses y MANIARA CHIARIIARIE tise fault ) RAJTV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI IHU VEIGOVA HTK ROAD, VEIGOWA, ALE OI), AAR fy pT Wheat are the de Fecrent Com pe MEPS OF Chere P Ethereun j9 peer -lo-peer NEVO. OF COMMpOlerE Meroe d ethere und nodes er cllenta each 1o08 & compaltble. _ SOF LMorve » Anyone can Wh Elhemum nedes onl dheve are no _Speckot yequiremcnb* _Websajets collection of Mhranes lool aloe MOCbapAl@lons ty _[fteract Loh an elhereum nodes Using ITI, TLE, Wehie ket connol Wn oF foteracts — Peer lo- peer Neluwert - el peer=tospeer nfeges i yeurn bloc. khair Is linked Lo each elher re _ Gvery node on Gilt thereon ope rotoc ol ed “fo. determine. te -fronsact(on Is legit |_On CUerevm nlers-LYancactions are message ‘thot ar recfeved. Value) scent restevey Ary load op clater are at) cerrponen's nl or Pol irancachon = : Page No, MANJARA CHARITABLE TRUST RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MU JUHU VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI - 53. IStalemachtnet- Also Knoven ag EVM, processes Etinereum pared transaottns QStale chenges-Th execles a program in mc wodel by fcedes) Et Is a HLL csotdety) are trencomplied and such a- HLL preytom fs_catled as smart contract consensus jonthm s— ne. dstribsiel Ethereom nu consensus _algonthmis process: Used to reach consensus on longest chafn » POW & pasare tw. methods for Etherecon most uttlezed- The state of Node of Ethereum |s kept locally on eack node in Form oF datekase- Tt Uses mertle Partita tree to shre Systerp Information € tronsaetons fnra serlollzed haghed YolUc- Whot ore UF ferent bem types OF etbereom amounts? iu The primary component | oF Ethereum sysiem /S an account Tt has on etherCeTH balonce- & user's account tan +ransmlt-trans acHons through = ethereum network These transac ons “are produced by the enteractions ‘between several acoums G ase kept In the Atsh? bvied datchases Senden reckeplent 4 contracts ate at involwed tn every transaction + Ethereum accoonts ae ANtcled (nto two types!- s I@Le ) GOA 1s Lontolled Via prrate Keys From cser contract QLUDOPIE NIG Contract code his 2. OF ACLOUNT 6-OLIMed by People on ethereumn netwrk- A poblte~ priv he fe peer pref Yean Re accor’ once She At | RATV GANDHI nnuy = KS MOL ANE lemttty. COP eloas not conte j | Tn Messages by gener lr r holding senting ooh ads: Access f 4 pyWale. Ley oF COR” be [dvansactions: £ti | } | Creates ene on Etherevm: The na MANIARA CHARTIABLE TRUST Pager) NSTITUTE OF TECHNOLOGY, MUMBAI IK ROAD. VIRSOWA, ANDIIERL WES), taueanat sy rr OF OO persone {nFormoé of -+he ee counk ee ee sn cocleg {t hat balarre tn ether € cen send raalorxe. In ether, € con send _ reting f signiag a treosachons. Ft ls used _ fredeving ETH & for Interacting uh srnart contwl over onels contract is prmided throg gh. Puble keys ase veed for account —to-account what Theat creotes accovnhs address. Two ACOOMS Can COMMUNI cote Wa Bon. ——- Brferratt Accounts (®))| contra tk Anaunts & | contract Accoums haga code fora gmart contract. Thks account does not have ony private er pubjic .tey, poblic addyess OF contract accaont ts used “te iden tery tt» Fonchons to rn & | State vatiabes ate _presentnincates Account [8 menage by the logic OF code. the cose oF comtratt(s mn an EVND when a EOA begins a transact with o& contact account? Contracté AC counr | fecod> |_| (2a J RAJIV GANDHI INSTITUTE ‘OF TECHNOLOGY, MU JUHU VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI - 3 >——— There are Four Fields in acwount cbakes— AROrce t- Serves as counters ensuting eaoh tonsactten is only competed once: btiverbalerce!- The acount oF ether the user presently bolds Cet). code hash3- IF €0AR, this Fietd Is empty. Te Bon halt account His Field includes cade thet wrt! done when a message Issent 60 account: This is (mmvytable Evm bytecode- Storaget Initial ty empty, Filled ¢ read From tinvugh trassections & con track codeconty for contract account). so What are dP Frerent 4es-t-retworks fn ethereum blockchatn? 5 [A Version oF projeck bs deploy ed fo Ethereum Test netuurk IC “Lest et”) replicates Euston: before it Is launched on tthereom blockehain+ [This allows developers € corprnontty te teat | projet befyre acvel lessests are eryaged - Ona tstnet, ether. & tokens are simple +o get and have no reod— World valve, They cee practically three fended tnuse & cack performs ‘identically to blackchain ushese ert ethers £+totens resides (@| eopstens- The Popsien testinetwork ts an. Ethereum Proof-of-uurk. testnets. Ne Can mine on Popsjeh Network +o obkfn ETH. nore ah ®| Koven The port beard "realest Kove’ best nehewsk as a proof-of- Authorty teatnet for'etheream. | © [Rinks | : s IEE Is also for 4st network founded by Geth +» At Riokeby, ane- fo mine 61H by rqueat |e fhvgh a feveet MANJARA CHARITABLE TRUST Page No. a RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI JUHU VERSOVA LINK PORD, VERSOVA, ANDHERI (WEST), MUMBAL 53 62 OlFerertiase between Bivoin & ethereurn blockchaine- And: Bitcoin SHB-256 fs Used {A b}tcoIn Bthereur veltak-2sé [612 Vorlant of sHAS Ls baechain algorthm - Used In Ethereum blockchajn “[ Asse Assests: Bitcancerc) | Gicoim Is externively used az an Asseatst etherCETH). ‘It is online currency but alsovttlizal online wyrreny. For Vohng sysien,Flle storagz, ete- ss Date related +o BlEcoin nbtwerle Data rcloted +o 2 thereumnetuart, ltrancactione 1s Frequently wi zed “Hansa cHons mea, Inciude $s ome simpy to-keep of transactons- eketable codes + | Blkcan cohsumes_muchmore energy Cerkainy consuming 67 tnreased amos than ethereorn %3,2: milon_houscholds| 1 OF energy but Lf ely fo decrease ob Hans)dtoned ro iPOSW 1)-MiLI(0 n hoasehy 12 yooue4 obytgmw? 1 oui sd ofstg, e Fey ‘engiber ‘ + roy tengther odd ress eo bis public ay +s12b. rer ei PU cer SIZ Bhs iprivede wy 256 tts | thInlng: ProoF-of-vse, Fomsensvs- fettet 256 bHe, op sol. roms Vee ag Transintored consensus Frere Pow wiording 12-5 Bltcoinsper block} to pror- oe 2s takel rewerling blocettme Lo rrinvies ony et | Ethers pluscothers for 12 minvlee tri 1 ‘ od $y Gy -2 sf : wot Eback based pimmveisenptiig | ponng completely sxe tiny long sage.) nob turing completely. i hanqveyen | aaniandfirrahueruse hod ~ OF TECHNOLOGY, MUMIay RAJIV GANDHI INSTITU JUHI VERSOVA TINK ROAD VHISOVA, ANDI MESH) MUMAL 1 = a a a a ee S_privede blockechaty Ms ehcvaoler dice? onecls “the prrimary.clisiincte QR fhot TE [Privo wine echatn ov perm —_j—-bebween privede ft public blockchatn [8 how You access the blackehitn fe: Aceess controls Because jt is permiscloned, a thet parky oF central adm nk: He¥ator Must approve accers beforg vaey can access blockcho| PrINate blacleche?a rested read _cicess of a. bilfins to crante New +ransacton LO UMbed number of Users of nodes A Angle organization wit be. tn charge. OF the nlo? Z be able tocontrel who cod access ax Join t+ : Tt is, In essere, a_partiolty decentralized systero- Bi tcoln, Etherevna Uteco) 9 are mative examples DF publle blarccioens as ack Vibal component oF systemiynek rewards fadvid vol Forging thefr approval, Private blockchotn, on other hand vsvalty do not - Fn comparisony private block hata are more ArOAGaLHon per sccord — Key Characteristics: (©) complete privacy ¢ Private blockchafn concentrotes on privacy issves @) centralized: private bic. tends tobe. more centralized: © | smproved scatability : the Flexibility to odd nodes €setv(ces o0 | demand an be huge. benefit +e organization» @| High per Pormonte € quick transactioni= when nocles one | anshfby bel locally: but there are Fewer -neies_partcipactiag In ledger, performarce- ts quicker. EE ls quicker as Hh can process trousonds oF transactions per second, ©)| Rotost archiecturet- Prvote blockchafn are having one of most Sjable hebwoork Structures: they ate designed to _v Iths tere! Any) problern + they, hence include high level_of secur mechanisms ther oid In preverrtiry maticlous act? vily. T T TT ae Vu Tr —1—T

You might also like