Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
8 views
Blockchain Asgn 2
Assignment of blockchain
Uploaded by
Prashant Kawathe
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save BlockchainAsgn2 For Later
Download
Save
Save BlockchainAsgn2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
8 views
Blockchain Asgn 2
Assignment of blockchain
Uploaded by
Prashant Kawathe
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save BlockchainAsgn2 For Later
Carousel Previous
Carousel Next
Save
Save BlockchainAsgn2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
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 See 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 ToMANIARA 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 ar 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 yMANIARA 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 JRAJIV 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 feveetMANJARA 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
Designing Blockchain Applications On Ethereum
PDF
100% (1)
Designing Blockchain Applications On Ethereum
33 pages
Analysis of Ethereum Smart Contracts - A Security Perspective
PDF
No ratings yet
Analysis of Ethereum Smart Contracts - A Security Perspective
70 pages
UNIT IV Ethereum Hyperledger
PDF
No ratings yet
UNIT IV Ethereum Hyperledger
15 pages
Blockchain 2.0-compressed
PDF
No ratings yet
Blockchain 2.0-compressed
45 pages
Blockchain - Smart Contract
PDF
No ratings yet
Blockchain - Smart Contract
45 pages
(Eth Deep Dive) Ethereum & Smart Contracts - Enabling A Decentralized Future-Blockchain-Berkeley
PDF
No ratings yet
(Eth Deep Dive) Ethereum & Smart Contracts - Enabling A Decentralized Future-Blockchain-Berkeley
66 pages
Unit 4
PDF
No ratings yet
Unit 4
34 pages
Blockchain Notes With Questions
PDF
No ratings yet
Blockchain Notes With Questions
9 pages
Unit – iv
PDF
No ratings yet
Unit – iv
62 pages
06 Smart Contract
PDF
No ratings yet
06 Smart Contract
61 pages
Blockchain & Ethereum Smart Contracts
PDF
No ratings yet
Blockchain & Ethereum Smart Contracts
15 pages
UNIT-IV BCT Modified Upto Hyperledger
PDF
No ratings yet
UNIT-IV BCT Modified Upto Hyperledger
37 pages
Blockchain Technology - Unit 2
PDF
No ratings yet
Blockchain Technology - Unit 2
17 pages
CSE446 Lecture 13
PDF
No ratings yet
CSE446 Lecture 13
23 pages
Notes_1166_UNIT4
PDF
No ratings yet
Notes_1166_UNIT4
14 pages
mod 5 simp
PDF
No ratings yet
mod 5 simp
8 pages
Unit-III-a
PDF
No ratings yet
Unit-III-a
24 pages
Accounts
PDF
No ratings yet
Accounts
8 pages
Blockchain Unit-3
PDF
No ratings yet
Blockchain Unit-3
33 pages
Ethereum Lect 10
PDF
No ratings yet
Ethereum Lect 10
47 pages
Atal_ethereum_solidity
PDF
No ratings yet
Atal_ethereum_solidity
74 pages
Block Chain UNIT-4
PDF
No ratings yet
Block Chain UNIT-4
35 pages
Ethereum
PDF
No ratings yet
Ethereum
27 pages
Public Vs Private Blockchain
PDF
No ratings yet
Public Vs Private Blockchain
45 pages
UNIT 3 Ethereum
PDF
No ratings yet
UNIT 3 Ethereum
43 pages
Module 4 - Ethereum
PDF
No ratings yet
Module 4 - Ethereum
43 pages
Module Three
PDF
No ratings yet
Module Three
97 pages
Blockchain Module-04 (Textbook)
PDF
No ratings yet
Blockchain Module-04 (Textbook)
34 pages
Lecture 2 Smart Contracts and Solidity Basics1
PDF
No ratings yet
Lecture 2 Smart Contracts and Solidity Basics1
133 pages
Finding The Greedy, Prodigal, and Suicidal Contracts at Scale
PDF
No ratings yet
Finding The Greedy, Prodigal, and Suicidal Contracts at Scale
14 pages
BLOCKCHAIN UNIT III PART B
PDF
No ratings yet
BLOCKCHAIN UNIT III PART B
23 pages
1
PDF
No ratings yet
1
32 pages
Understanding Ethereum from Ethereum Whitepaper
PDF
No ratings yet
Understanding Ethereum from Ethereum Whitepaper
5 pages
Mod-V(Ethereum)
PDF
No ratings yet
Mod-V(Ethereum)
3 pages
Intro To Ethereum
PDF
No ratings yet
Intro To Ethereum
68 pages
IA 2 Blockchain
PDF
No ratings yet
IA 2 Blockchain
37 pages
Blockchain PT2
PDF
No ratings yet
Blockchain PT2
10 pages
BCT Unit IV Blockchain Components and Consensus
PDF
No ratings yet
BCT Unit IV Blockchain Components and Consensus
5 pages
Mod 2_2
PDF
No ratings yet
Mod 2_2
31 pages
Smart Contracts
PDF
No ratings yet
Smart Contracts
6 pages
8-Ethereum - Public and Private Ledgers-12-08-2024
PDF
No ratings yet
8-Ethereum - Public and Private Ledgers-12-08-2024
8 pages
BBM - 25 02 2020
PDF
No ratings yet
BBM - 25 02 2020
31 pages
Untitled Document-1 PDF
PDF
No ratings yet
Untitled Document-1 PDF
9 pages
BCT UNIT--IV
PDF
No ratings yet
BCT UNIT--IV
49 pages
Remaining of Unit-4 (BC-403)
PDF
No ratings yet
Remaining of Unit-4 (BC-403)
36 pages
Ethereum
PDF
No ratings yet
Ethereum
106 pages
Smart Contracts Unit4
PDF
No ratings yet
Smart Contracts Unit4
16 pages
Ethereum Essentials eBook
PDF
No ratings yet
Ethereum Essentials eBook
19 pages
Blockchain Unit 3
PDF
No ratings yet
Blockchain Unit 3
5 pages
2 Ethereum TK
PDF
No ratings yet
2 Ethereum TK
35 pages
1802.06038v2
PDF
No ratings yet
1802.06038v2
15 pages
Demo On Blockchain Ethereum (Solidity) Programming: by Rajasekhar Dinavahi
PDF
No ratings yet
Demo On Blockchain Ethereum (Solidity) Programming: by Rajasekhar Dinavahi
17 pages
Block chain Unit-5
PDF
No ratings yet
Block chain Unit-5
14 pages
Application of Block Chain To Smart Contracts
PDF
No ratings yet
Application of Block Chain To Smart Contracts
16 pages
Smart Contracts ETHER
PDF
No ratings yet
Smart Contracts ETHER
20 pages
Unit 4 (1)
PDF
No ratings yet
Unit 4 (1)
1 page
BCT - U4
PDF
No ratings yet
BCT - U4
20 pages
ethereum
PDF
No ratings yet
ethereum
47 pages