Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoshOrndorff/blockchain-from-scratch
/ functions
Functions
239 in github.com/JoshOrndorff/blockchain-from-scratch
⨍
Functions
239
◇
Types & classes
58
Function
sm_4_transfer
()
src/c1_state_machine/p4_accounted_currency.rs:312
Function
sm_5_empty_receive_fails
()
src/c1_state_machine/p5_digital_cash.rs:184
Function
sm_5_empty_spend_fails
()
src/c1_state_machine/p5_digital_cash.rs:158
Function
sm_5_mint_new_cash
()
src/c1_state_machine/p5_digital_cash.rs:102
Function
sm_5_output_value_0_fails
()
src/c1_state_machine/p5_digital_cash.rs:207
Function
sm_5_overflow_receives_fails
()
src/c1_state_machine/p5_digital_cash.rs:121
Function
sm_5_receiving_bill_with_incorrect_serial_fails
()
src/c1_state_machine/p5_digital_cash.rs:297
Function
sm_5_serial_number_already_seen_fails
()
src/c1_state_machine/p5_digital_cash.rs:237
Function
sm_5_spending_and_receiving_same_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:267
Function
sm_5_spending_bill_with_incorrect_amount_fails
()
src/c1_state_machine/p5_digital_cash.rs:334
Function
sm_5_spending_from_alice_to_all
()
src/c1_state_machine/p5_digital_cash.rs:506
Function
sm_5_spending_from_bob_to_all
()
src/c1_state_machine/p5_digital_cash.rs:561
Function
sm_5_spending_from_charlie_to_all
()
src/c1_state_machine/p5_digital_cash.rs:616
Function
sm_5_spending_more_than_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:413
Function
sm_5_spending_non_existent_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:476
Function
sm_5_spending_same_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:364
Method
submit_transaction
Submit a transaction to the client's transaction pool to hopefully be included in a future block.
src/c4_client/p4_transaction_pool.rs:48
Function
trivial_always_valid_pow
Create an instance of the PoW Consensus that behaves identically to the trivial consensus implementation for `()` from the module level.
src/c3_consensus/p1_pow.rs:40
Method
try_from
(_: PowOrPoaDigest)
src/c3_consensus/p5_interleave.rs:30
Method
try_insert
(&mut self, t: <SM as StateMachine>::Transition)
src/c4_client/p4_transaction_pool.rs:68
Method
validate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p5_interleave.rs:52
Method
validate
Check that the header is signed by the dictator
src/c3_consensus/p2_dictator.rs:23
Method
validate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p3_poa.rs:22
Method
validate
All blocks are considered valid
src/c3_consensus/mod.rs:96
Method
validate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p4_even_only.rs:19
Method
validate
Check that the provided header's hash is below the required threshold. This does not rely on the parent digest at all.
src/c3_consensus/p1_pow.rs:21
Method
validate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p6_forking.rs:31
Method
verify_child
Verify a single child header.
src/c4_client/p1_data_structure.rs:36
Method
verify_child
Verify a single child header. This is a slightly different interface from the previous units. Rather than verify an entire sub-chain, this function c
src/c2_blockchain/p4_batched_extrinsics.rs:53
Method
verify_child
Verify a single child header.
src/c2_blockchain/p6_rich_state.rs:62
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip.
src/c4_client/p1_data_structure.rs:41
Method
verify_sub_chain
Verify that all the given headers are valid according to the consensus rules. This method assumes that the parent_digest is valid, and verifies all t
src/c3_consensus/mod.rs:74
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. In addition to the consecutive heights and linked hashes, we now ne
src/c2_blockchain/p2_extrinsic_state.rs:50
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. We can now trivially write the old verification function in terms o
src/c2_blockchain/p4_batched_extrinsics.rs:64
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. In addition to all the rules we had before, we now need to check th
src/c2_blockchain/p3_consensus.rs:52
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip.
src/c2_blockchain/p6_rich_state.rs:67
Method
verify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. An "entire" chain can be verified by calling this method on a genesi
src/c2_blockchain/p1_header_chain.rs:40
Method
verify_sub_chain_even
verify that the given headers form a valid chain. In this case "valid" means that the STATE MUST BE EVEN.
src/c2_blockchain/p3_consensus.rs:64
Method
verify_sub_chain_odd
verify that the given headers form a valid chain. In this case "valid" means that the STATE MUST BE ODD.
src/c2_blockchain/p3_consensus.rs:70
← previous
201–239 of 239, ranked by callers