You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A blockchain has quite a few layers to let function, but it basically gives us a place to do computation, and store information. So in one sense it functions as a database. Think about this. To get access to all of the information on a traditional database you need permission from a higher authority, right? Access to information on a public blockchain is permission**less**. Not only can we read the information on it, but anyone can also write information to it. And that’s where we come in and get this all started with our *smart contract*. And what is also different to a traditional database is that once the information goes onto this blockchain, it stays there forever, and ever, and ever….thanks to cryptography!!
29
+
How was that? No stress if the answers didn't come naturally. We're here to fill
30
+
in the gaps! If you're interested in more context before moving along to the
31
+
lesson, check out the explainers below.
32
+
33
+
<SideDrawerbuttonText="What is a blockchain?">
34
+
A blockchain has quite a few layers to let function, but it basically gives us
35
+
a place to do computation, and store information. So in one sense it functions
36
+
as a database. Think about this: to get access to all of the information on a
37
+
traditional database you need permission from a higher authority, right? Access
38
+
to information on a public blockchain is permission**less**. Not only can we read
39
+
the information on it, but anyone can also write information to it. And that’s
40
+
where we come in and get this all started with our *smart contract*. And what is
41
+
also different to a traditional database is that once the information goes onto
42
+
this blockchain, it stays there forever, and ever, and ever... thanks to
43
+
cryptography!
31
44
32
45
But what is the information that is kept on this chain? Wait. Why a chain? Well
33
46
basically transactions, often, but not always, financial, are made and recorded
@@ -38,7 +51,7 @@ _money trail_. And this was one of the main intentions of blockchains.
38
51
Transparency. There are ever-growing use cases for the types of transactions,
39
52
financial and non-financial. Let’s move on. The blocks are secured to each other
40
53
with cryptography. A similar type of encryption that is used to secure the
41
-
Signal or Telegram apps on your smartphone…..(any other examples???) If someone
54
+
Signal or Telegram apps on your smartphone. (Any other examples?) If someone
42
55
did try to change any information on the chain, the alarm bells would go off.
43
56
44
57
So how is all this permission**lessness** possible? Can’t someone shut this
@@ -59,7 +72,7 @@ over the whole network, so there is no higher authority.
59
72
So we have what is like a global computer which is permissionless, transparent
60
73
and distributed, and as long as 66% of the nodes are running, the blockchain can
61
74
keep on going quite safely, which makes it almost completely censorship
62
-
resistant. Think about that for a second. And it gets better…..
75
+
resistant. Think about that for a second. And it gets better...
63
76
64
77
Really? What’s so special about all of this? Well until recently, we only
65
78
transferred data on the internet. Yes, you could send money too by using some
@@ -68,13 +81,13 @@ advent of cryptocurrencies we can now send _digital_ value… permissionlessly.
68
81
That's quite a thing! In the early days of crypto we could only transact with
69
82
digital tokens such as BTC and then ETH and soon later, with thousands of
70
83
different coins. But new ideas continue to emerge and we’re going to be building
71
-
a few of them!!!
84
+
a few of them!
72
85
73
86
The distributed sharing of value on blockchain has opened up further development
74
87
of networks that for example facilitates the distribution of storage, where,
75
88
like running a blockchain node, people can use their home computer’s storage
76
89
device for storing other people’s data, and earn a bit of money in return.
77
-
That’s where your NFTs (will) live!! Many, many more internet services, or
90
+
That’s where your NFTs (will) live! Many, many more internet services, or
78
91
protocols that have been centralized until now have emerged to complement and
79
92
add extra functionality to all of the above, and many completely new protocols
80
93
are being added really quickly! So you are going to hear words like
@@ -83,7 +96,7 @@ to a stage of internet evolution where we can own our personal data again and be
83
96
able to transfer value without worrying about a middleman saying if we can or
84
97
can’t.
85
98
86
-
This is what we call Web3. Welcome!!
99
+
This is what we call Web3. Welcome!
87
100
88
101
So back to the smart contract. What the hell is it? It’s a piece of computer
89
102
code that will do whatever we programme it to do. And once we have written and
@@ -113,7 +126,7 @@ easier to remember alias for their address e.g.
113
126
114
127
</SideDrawer>
115
128
<br/>
116
-
<SideDrawerbuttonText="A bit more info on smart contracts...">
129
+
<SideDrawerbuttonText="What is a smart contract?">
117
130
118
131
A smart contract, as it suggests is a contract, but written into computer code
119
132
and stored and executed on a blockchain. What does it let us do? In simple
@@ -167,7 +180,7 @@ blockchain stack. Since it has a lot of the features needed to run a smart
167
180
contract, it let’s us get started with learning how to develop one and see how
168
181
it would work on a live network and also some of the things a user would
169
182
experience on a front end application. Experienced developers still use it too
170
-
because it is so handy for a lot of things. It’s a pretty nifty tool!! It has:
183
+
because it is so handy for a lot of things. It’s a pretty nifty tool! It has:
171
184
172
185
A `file explorer`: a place to write and store your smart contracts and files of
173
186
code as you work with them online.
@@ -652,7 +665,7 @@ Compiler sidebar icon.
652
665
653
666
}
654
667
```
655
-
668
+
656
669
</SideDrawer>
657
670
658
671
Now we are ready to deploy our contract. We can now head to the Deploy & Run
@@ -703,9 +716,12 @@ If you look closely, inside the “logs” part, our smart contract predicted a
703
716
What if you try out setting the message to `gm` and look at the logs again. Can
704
717
you see the magical spell that is being cast here?
0 commit comments