mega cooked

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/300

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:48 AM on 8/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

301 Terms

1
New cards

What does a hash function do?

It turns any input into a fixed-length output called a hash.

2
New cards

What is the input to a hash function?

Any data like text, a file, transaction data, or a block header.

3
New cards

What is the output of a hash function?

A fixed-length hash.

4
New cards

What happens to a hash output if the input changes slightly?

The whole output changes completely and unpredictably. This is the avalanche effect.

5
New cards

Can you find a hash's input from its output?

No. Hashing only goes one way, so you would have to brute force it.

6
New cards

Why are hashes important for blockchain?

They link blocks together, summarize transaction data, expose tampering, and power proof of work.

7
New cards

What is a public key?

A key you can share. It is used to encrypt messages or verify signatures.

8
New cards

What is a private key?

A secret key you keep. It is used to decrypt messages or sign things.

9
New cards

What are RSA keys made of?

Two large prime numbers, p and q. The public key uses N which equals p times q.

10
New cards

Which key encrypts an RSA message?

The recipient's public key.

11
New cards

Which key decrypts an RSA message?

The recipient's private key.

12
New cards

Why is RSA secure?

Because factoring N back into p and q is really hard. Factoring is a trapdoor function.

13
New cards

How do you create a digital signature?

You hash the message, then sign that hash with your private key.

14
New cards

Which key creates a digital signature?

The sender's private key.

15
New cards

Which key verifies a digital signature?

The sender's public key.

16
New cards

What does a valid signature prove about the sender?

It proves the real key holder signed it. This is authenticity.

17
New cards

What does a valid signature prove about the message?

It proves nobody changed the message after signing. This is integrity.

18
New cards

What is elliptic curve cryptography (ECC)?

A type of asymmetric crypto that uses elliptic curve math to make key pairs.

19
New cards

What do ECC and RSA have in common?

Both use public and private key pairs and both rely on trapdoor math.

20
New cards

What does ECC do better than RSA?

It gives the same security with much smaller keys, so it is more efficient.

21
New cards

What is in a block header?

The previous block hash, the nonce, a block number or timestamp, and the Merkle root.

22
New cards

What is in block data?

The actual transactions.

23
New cards

What is a transaction?

A signed instruction that changes the state, like sending coins or calling a contract.

24
New cards

How do you confirm a transaction's sender?

You verify its signature using the sender's public key.

25
New cards

How are Merkle trees built?

You hash each transaction, pair them up and hash again, and repeat until one root is left.

26
New cards

What is the Merkle root?

The single hash at the top that summarizes all the transaction data.

27
New cards

Why are Merkle trees useful for blockchains?

They let you prove a transaction was included without downloading every transaction.

28
New cards

How do you prove a tx is in a Merkle tree?

You give the transaction hash plus the sibling hashes needed to rebuild the root.

29
New cards

What happens to the Merkle root if a leaf changes?

The change ripples up the tree and the root changes.

30
New cards

What constraint is there on a new block's hash?

It has to be below the target difficulty.

31
New cards

What is that constraint called?

The target difficulty.

32
New cards

How does a miner change a block's hash?

They change the nonce and hash the block again.

33
New cards

Why is finding a valid block hash hard?

Hash outputs are unpredictable, so miners just have to keep guessing.

34
New cards

What are miners?

Nodes that build candidate blocks and search for valid proof of work.

35
New cards

What does mining a block mean?

Finding valid proof of work for that block.

36
New cards

Why are miners incentivized to mine?

They earn the block reward plus transaction fees.

37
New cards

How long does a Bitcoin block take?

About 10 minutes on average.

38
New cards

How does block time relate to difficulty?

Difficulty adjusts every 2016 blocks to keep blocks around 10 minutes apart.

39
New cards

What is Proof of Work?

A consensus method where miners prove they spent computation to find a valid hash.

40
New cards

What is the "work" being proven?

Hashing the header over and over with new nonces until one meets the target.

41
New cards

What happens to later blocks if an old block's data changes?

That block's hash changes, which breaks the link to every block after it.

42
New cards

Why is changing old data hard?

You would have to redo the proof of work for that block and all the ones after.

43
New cards

What is a Sybil attack?

When one attacker makes many fake identities to gain influence.

44
New cards

Why does Proof of Work defend against Sybil attacks?

Influence comes from hash power, not from how many identities you have.

45
New cards

What are the parts of a transaction?

Sender, recipient, amount or data, nonce, fee, and signature.

46
New cards

Where does a transaction go after submission?

Into the mempool.

47
New cards

How does a transaction get into a block?

A miner or validator picks it from the mempool.

48
New cards

How do nodes communicate blocks?

They gossip them across the peer-to-peer network.

49
New cards

Which chain do nodes consider correct?

The canonical chain, which is the longest or heaviest valid chain with the most proof of work.

50
New cards

How does a node endorse the canonical chain?

By mining or building on top of it.

51
New cards

Why do nodes endorse the canonical chain?

Because rewards on losing forks become worthless.

52
New cards

What happens with two chains of equal length?

They split for a bit until one gets extended and becomes canonical.

53
New cards

Why wait 6 blocks for confirmation?

Because finality is probabilistic. More blocks make a reversal far less likely.

54
New cards

What assumptions do we make about Bitcoin nodes?

Some may be malicious or offline, but honest miners are assumed to hold most hash power.

55
New cards

How does a 51% attack work?

With most of the hash power you can build a longer chain faster than everyone else.

56
New cards

What can a 51% attacker do?

Reorder recent transactions, censor them, and double-spend their own coins.

57
New cards

What can't a 51% attacker do?

Steal coins without keys or make invalid transactions count as valid.

58
New cards

What are the three layers of blockchain?

Consensus, execution, and data availability.

59
New cards

What is Bitcoin's consensus layer?

Its proof of work Nakamoto consensus.

60
New cards

What is Bitcoin's execution layer?

Transaction validation and UTXO state updates.

61
New cards

What is Bitcoin's data layer?

The block and transaction data that nodes store and share.

62
New cards

What is a distributed system?

A group of independent computers working together toward one goal.

63
New cards

What is state machine replication?

Every node applies the same ordered transactions to reach the same state.

64
New cards

How does state machine replication relate to blockchains?

A blockchain is basically a replicated state machine.

65
New cards

What is a Byzantine environment?

One where nodes can fail in any way, including acting maliciously.

66
New cards

What does it mean for a node to fail?

It can crash, go offline, delay or ignore messages, or lie.

67
New cards

Can the system work with faulty machines?

Yes, as long as the faults stay under a threshold, usually under one third.

68
New cards

What is the CAP theorem?

You cannot fully guarantee consistency, availability, and partition tolerance all at once.

69
New cards

What is consistency in CAP?

Every read gives you the most recent write or an error.

70
New cards

What is availability in CAP?

Every request gets a real, non-error response.

71
New cards

What is partition tolerance in CAP?

The system keeps running even when messages are dropped or delayed.

72
New cards

Why can't you have all three CAP properties?

During a partition you have to drop one. You either stay available and risk stale data, or stay consistent and reject requests.

73
New cards

What is liveness?

The system keeps making progress and keeps producing blocks.

74
New cards

What is safety?

Honest nodes never finalize two conflicting histories.

75
New cards

Why are liveness and safety incompatible in async systems?

You cannot tell a crashed node from a slow one, so you cannot promise both. This is the FLP result.

76
New cards

What is a liveness-focused system?

One that keeps producing blocks even when finality is not certain, like Proof of Work.

77
New cards

What is a safety-focused system?

One that halts instead of risking conflicting finality, like BFT chains.

78
New cards

What is fast finality?

Once a block is committed it cannot be reverted unless many validators get slashed.

79
New cards

Which systems have fast finality?

Proof of Stake BFT chains like Tendermint.

80
New cards

What is probabilistic finality?

A block gets safer the more blocks stack on top of it.

81
New cards

Which systems have probabilistic finality?

Proof of Work chains like Bitcoin.

82
New cards

What is the Byzantine Generals problem?

Getting everyone to agree on one action even when some players are malicious.

83
New cards

What happens if 1/3 of PBFT participants are faulty?

The guarantees break. It needs fewer than one third faulty to work.

84
New cards

Three generals, one malicious (not you), what's the problem?

The traitor can tell each honest general something different, so you cannot guarantee agreement.

85
New cards

What's the difference between Proof of Stake and Proof of Work?

Proof of Work uses mining and compute. Proof of Stake uses locked-up stake and incentives.

86
New cards

What happens to malicious validators in Proof of Stake?

They get slashed and lose some or all of their stake.

87
New cards

What are the four steps of Tendermint?

Propose, prevote, precommit, and commit.

88
New cards

What happens in Tendermint propose?

The chosen proposer offers a block for that round.

89
New cards

What happens in Tendermint prevote?

Validators vote if they saw and accept the block.

90
New cards

What happens in Tendermint precommit?

Once over two thirds prevote, validators precommit.

91
New cards

What happens in Tendermint commit?

Once over two thirds precommit, the block is finalized.

92
New cards

What happens if a validator goes offline in Tendermint?

The chain keeps going if over two thirds are still online. That validator just misses rewards.

93
New cards

How many validators offline before Tendermint breaks?

If one third or more of the voting power drops, the chain halts.

94
New cards

In Tendermint, what happens when 1/3 or more of voting power goes offline?

The chain can't reach the 2/3 quorum needed to finalize, so it halts.

95
New cards

What is Solidity?

The language you use to write smart contracts.

96
New cards

What is the EVM?

The runtime that actually executes smart contracts.

97
New cards

How is a smart contract different from a normal code library?

It lives on-chain, is public, is permanent, runs deterministically, and can control assets.

98
New cards

Why can't Solidity have random numbers?

Every node has to compute the same result, so execution must be deterministic.

99
New cards

Why can't Solidity use decimals?

The EVM only does integers, so decimals are faked with scaled integers.

100
New cards

What are other limitations of smart contracts?

They are expensive, public, hard to upgrade, and cannot reach off-chain data on their own.