1/30
Looks like no tags are added yet.
Centralized ledger
A record of transactions that is controlled and maintained by one central organization or authority.
What 3 things do you need to trust thrid party
1)does not lose or destory ledger
2)validates and includes all transcations
3)keeps a secure copy
Decentralized ledger
: A record of transactions that is shared and maintained by many people or computers, rather than one central authority (TRUSTLESS AND CONSENSUS)
What is blockchain
A decentralized digital ledger that records transactions across many computers, making the records difficult to change.
Properoties of blockchain
decentralized:
distributed
immultable
distributed define
ledger is copied and spread across all users on the network
immutable define
records cant be altered retroactively without redoing all subsequent blocks and convining network to accept new chain, creaitn a permanent and verifable histoy
Once a record is added to the blockchain, it cannot be changed or deleted easily. Changing it would require changing the blocks after it and getting the network to agree.
does blockchain have a single point of failture and who controls blockchain
no single point
network controls block chain and minimal trust
how does blockchain work
Blockchain uses cryptography to link blocks together in a growing chain.
cryptography
process of turning information into code
what does each block carry?
cryptographic hash of previous block, so chain of blocks remain unbroken
what is hashing
converts any form of data into fixed length string of code
used to validate infromation, no need to be reverted into their original form
is hasing a one-way function
yes, once you have output you cna’t go back in the input like a blener and fruits
is hasing encruption
no its not because you can’t decrpyt it
sha-256
accept any input and convert into a fixed 256-bit output
collision
2 different messages share one fingerprint (hash)
what are hash functions mostly used for
like fingerprint verfication purposes
while encryption Hides data so it can only be read using a key.
what are sha-256 widely used for
email and file transfer
salted hash
Adds a random string (salt) to a password before hashing it to make it more secure.
password hash
is deterministic (same input procdes the same output) so hacker use rainbow table
rainbow table
precomputed table of hashes for common passwords to figure out what the original passwords were
what is bitcoin
payment nework that is
decentralized,
global,
peer-to-lpeer paymen
t operates all day without intermedidieris (digital asset)
max total supply of bitcoin
21 million
What is PoW-PROOF OF WORK
one type of consensus mechanism
in The poW model?
Computers solve a difficult puzzle to add a block to the blockchain.
what is a nonce
An arbitrary number added to the transactions before hashing. Miners change it to find a valid hash.
block header
-hash of previous block
-summaryh hash of block transactions
-nonce (a number to be picked by the minder)
Arbitrary number:
A number chosen without a specific reason or rule.
successful mining
miners trying different nonce to get a special hash that has a certain number of leading zeros
what does more leading zeros mean
make it more diffcult
winning hash formula
transactions +nonce