Transaction's approved. It was super fast because it's in the local blockchain. And yeah, that's it. So cryptography, it's everything to do in the blockchain, it's to do about hashes, we have the content with different sizes, it transfers cryptography function, and gets hashed. And as you can see, the hash is the same size.
So whenever you send a transaction, the transactions are grouped together and hashed, and then the hashes are hashed, and then these hashes are hashed, and then that's what is like merkle tree. So basically, these will be in the block. So multiple transaction will be grouped together and combined in the block. And that's how it will look like. So we have block 11, let's say. And this block has merkle tree of transactions. So it has like a hash of hashes of transactions, which are also hashes. And then what happens here is that all these block, this is the block header, all these block is hashed, and it exists in the header of the next block. And that's why we have the blockchain, that's why it's a chain, right? And that's why it's secure, because if I want to change and maliciously go and change something in history, right, these blocks will be invalid. Like I need to recompute all the blockchain, which is computational-wise is not really possible. So how does it work? Transaction requested, blockers created, nodes validate the transaction, then block is added to blockchain, nodes receive a reward for proof of work, and transaction is completed. We discussed that previously. So pretty much the same thing, I just added the block here.
So what is Guess? We've seen how I pay the guess. Whenever we send a transaction on the blockchain, we need to pay a guess, which is a fee that will get to the miner, and basically reading from the blockchain won't cost anything, but writing to a blockchain will cost because it will change the state of the blockchain, will cost computational resources. So less guess you pay, the longer transaction will take. The longer it will take to verify the transaction basically, to reach the proof of work.
So what are decentralized applications? Decentralized applications use the browser or any client that you want, in our case we were using the browser. Web3 interface on the front end, and then we basically connect to the blockchain. This is supposed to be here, actually. Sorry about that. So these are decentralized applications and sometimes they can be hybrid ones whenever we have a back end or a cloud, and then we interact to the blockchain from the server and maybe from the client. So smart contracts. What are smart contracts? We talked that Ethereum can run smart contracts, right? So it's a blockchain program basically, that's accessible to anyone on the network. And they look like that.
Comments