Hashing and Smart Contracts

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/6

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

What is hash ?

  • It is a unique digital fingerprint of any data

  • It is created using hash function

  • It is deterministic

  • A small change in input will change the output completely.

2
New cards

What are the uses of hash in blockchain?

  • Generation of hash code

  • Mekel tress

  • Data integrity

3
New cards

Diagram of Hash :

4
New cards

What are the properties of a secure cryptography hash function?

  1. Collision Resistance – No two different inputs should produce the same hash.

  2. Preimage Resistance – A hash output should not reveal its original input.

  3. Deterministic Output – The same input always produces the same hash.

  4. Avalanche Effect – A small input change causes a completely different hash.

  5. Puzzle Friendliness – Finding an input that produces a specific hash should be computationally hard.

  6. Fixed-Length Mapping – The hash output is always of a fixed size, regardless of input length.

5
New cards

What are smart contracts?

A smart contract is a program that automatically executes when conditions are met

ex: vending machine, voting system

6
New cards

Working of smart contract

It follows IFTTT logic : If this, then that

If runs on a blockchain and execute itself when conditions are met

7
New cards

What are the steps of smart contracts?

  • Write the code: Define the condition using programming language

  • Deploy on Blockchain: Upload the contract to BC

  • Wait for trigger

  • Automatic execution

  • Record transaction