# Functions, Hash Functions, Cryptography - Discussion

43 Likes

hashâ€™s all you need to know its one way!! no turning backâ€¦

17 Likes

Im very curious how to check hashes interface friendly in the end in different applications.

4 Likes

Just finished a section without any homework. Wohoo! I can go home early!!

80 Likes

Just wanted to confirm my current understanding.

The public key is the sha256 of the private key and the wallet address is the RIPEMD160 of the public key?

4 Likes

Hey Ivan, I want to start similar curses in Lithuania and was thinking maybe you can help me?

Yeah Iâ€™m green on the hashing algorithms myself. I donâ€™t quite get the â€śhandshakeâ€ť idea but Iâ€™m looking forward to when I have my head around it so to speak. Actuallyâ€¦ I was just thinking it works like this.

Person A sends person B a public key.
B puts his private key with Aâ€™s public key and creates a hash.
B sends this hash to A.
A mixes this hash with his private key to produce another hash.
A sends this hash to B.

Both A and B now have unique private hashs that are used to decrypt each otherâ€™s messagesâ€¦ Right?

12 Likes

Hash is a cryptographfical timestamp/fingerprint between every block.
No way going back after that. It is final

11 Likes

Hash rate is something that is important with this type of technology.

2 Likes

Half way down the page, thereâ€™s a list of the different conversion stages in the section How to create Bitcoin Address

It seems that both SHA-256 and RIPEMD-160 are used to convert the public key into a Bitcoin address. There are also some other stages, and SHA-256 is actually used multiple times.

Probably not the straightforward answer you hoped for, but I hope that helps!

8 Likes

Hi Ivan,

Just need a quick explanation for my business-minded friends, can I explain to them in the picture as shown? The output of SHA256 serves as the inputted Hash for the next block. As a result, it is impossible to change the â€śblockchainâ€ť as there is a need for the right previous output in order to proceed with the next block with any transaction information.

Thanks and hope to hear from you.

19 Likes

correct, each block has the hash of the previous block. so if you alter an older block in the blockchain, all the next blocks become invalid.

5 Likes

Iâ€™m not into programming in blockchain yet. But do understand given the consensus network all hashes and thereby transactions on the blockchain are final as if written in stone. That is one of the reasons the network is so secure.

5 Likes

Regarding Dapps. Can a Dapp built on etherium control another blockchain like BTC? If not then only controls the blockchain it was built on? That would give it a lot of limitations I would think. Also am I right in saying the only way to trigger a Dapp is by entering some kind of info on a site with a URL?

1 Like

Hashing is kind of like a tumb print unique and cannot be reversed back to original content.There are many types of hashing algorithms.Itâ€™s the cryptography and sending of information between two parties that I am confused.

2 Likes

If you build a dapp on Ethereum, it stays within the limits of Ethereum. but you can program a dapp that uses ethereum and other blockchains as well. for example, you can program a game that uses Satoshiâ€™s with the lightning network on bitcoin. and build in game assets using Ethereum. Using metamask you can trigger events (callbacksâ€“like stuff) written in smart contracts on Ethereum.

4 Likes

i have a question about public and private keys.
If public key is derived from private key, and Ivan said its not possible to go the opposite way- from public key to private key. Then how are the public keys created, is it thru math? If yes, then theoretically it is possible to uncrack that key. And if its not derived thru math, then thru what? Because if its created randomly, then how the blockchain recognized the key? It has to be stored somewhere, as a key to unlock the door, but where is that stored and can that thing/place be hacked ?

5 Likes

Adresses are derived from public keys wich are created using your private key(random number). You canâ€™t calculate private key from a public key. it uses an algorithm and hashes. (so It uses math and cryptography) You can sign transactions using your private key without reveiling it. so You can use your private key in a bitcoin wallet to proof that you are an owner of that batch of Bitcoins. Every Batch of bitcoins have a locking script on it. only the person who has the secret private key can unlock that batch to spend it.

You should watch this amazing presentation, This explains in detail How Keys and addresses work in Bitcoin. If you still have questions, feel free to ask.

6 Likes

hello
Thanks for the answer, i will watch the video!
without watching it, i still have the question how can i be sure that private key cannot be derived from public key?
Because so far its only said that you cannot do that, but thats what they thought about the MD5 aswell, and just saying that you cant do that
Is explaining very little.
But perhaps these questions resolve after i watch the video.
Thanks!

1 Like

It uses ecliptic curve cryptography. Itâ€™s quite complex. Maybe in the distant future, quantum computers can break this. But by this time, Bitcoin could change this into a more secure way.