Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChengHua926/rBTC
/ functions
Functions
122 in github.com/ChengHua926/rBTC
⨍
Functions
122
◇
Types & classes
22
↓ 42 callers
Method
address
(&self)
src/tx.rs:21
↓ 19 callers
Method
utxos
(&self)
src/chain.rs:113
↓ 17 callers
Method
transactions
(&self)
src/block.rs:47
↓ 15 callers
Function
regtest_chain
()
src/tests/protocol.rs:6
↓ 13 callers
Method
create_transaction
( &self, utxos: &UtxoSet, to: Address, amount: Amount, )
src/wallet.rs:31
↓ 10 callers
Method
mine
(&mut self)
src/block.rs:74
↓ 8 callers
Method
checked_add
(self, other: Self)
src/amount.rs:24
↓ 8 callers
Method
len
(&self)
src/utxo.rs:49
↓ 8 callers
Method
next_height
(&self)
src/chain.rs:98
↓ 7 callers
Method
build_block
( &self, miner: Address, transactions: Vec<Transaction>, )
src/chain.rs:59
↓ 7 callers
Method
next
(self)
src/types.rs:45
↓ 7 callers
Method
outputs
(&self)
src/tx.rs:135
↓ 7 callers
Method
outputs_for
(&self, address: &Address)
src/utxo.rs:22
↓ 7 callers
Method
signed_transaction_from_refs
( &self, inputs: Vec<UtxoRef>, outputs: Vec<TxOutput>, )
src/wallet.rs:61
↓ 6 callers
Method
inputs
(&self)
src/tx.rs:126
↓ 6 callers
Method
is_empty
(&self)
src/utxo.rs:53
↓ 6 callers
Method
tip_hash
(&self)
src/chain.rs:102
↓ 6 callers
Method
value
(&self)
src/tx.rs:25
↓ 5 callers
Method
apply_transaction
(&mut self, tx: &Transaction)
src/utxo.rs:34
↓ 5 callers
Function
chain_with_wallets
()
src/tests/invariants.rs:3
↓ 5 callers
Function
hash_bytes
(bytes: &[u8])
src/crypto.rs:5
↓ 5 callers
Method
id
(&self)
src/tx.rs:118
↓ 5 callers
Method
is_coinbase
(&self)
src/tx.rs:122
↓ 5 callers
Method
refresh_id_for_test
(&mut self)
src/tx.rs:145
↓ 5 callers
Method
transactions_mut_for_test
(&mut self)
src/block.rs:52
↓ 4 callers
Method
compute_hash
(&self)
src/block.rs:81
↓ 4 callers
Function
mine_payment
(chain: &mut Blockchain, miner: &Wallet, receiver: &Wallet, amount: Amount)
src/tests/invariants.rs:10
↓ 4 callers
Method
outputs_mut_for_test
(&mut self)
src/tx.rs:140
↓ 4 callers
Method
refresh_id
(&mut self)
src/tx.rs:149
↓ 3 callers
Method
add_block
(&mut self, block: Block)
src/chain.rs:74
↓ 3 callers
Method
checked_sub
(self, other: Self)
src/amount.rs:31
↓ 3 callers
Method
compute_id
(&self)
src/tx.rs:153
↓ 3 callers
Method
difficulty
(&self)
src/chain.rs:109
↓ 3 callers
Method
get
(&self, reference: &UtxoRef)
src/utxo.rs:30
↓ 3 callers
Function
hash_pair
(left: TxId, right: TxId)
src/merkle.rs:89
↓ 3 callers
Function
lab_chain
()
src/main.rs:35
↓ 3 callers
Method
starts_with_target
(self, difficulty: Difficulty)
src/types.rs:99
↓ 3 callers
Function
validate_transaction_against
( tx: &Transaction, utxos: &mut UtxoSet, )
src/validation.rs:92
↓ 3 callers
Method
work
(self)
src/types.rs:72
↓ 2 callers
Method
balance
(&self, address: &Address)
src/utxo.rs:15
↓ 2 callers
Method
blocks
(&self)
src/chain.rs:125
↓ 2 callers
Method
bytes
(self)
src/types.rs:64
↓ 2 callers
Method
canonical_bytes
(&self, include_signatures: bool)
src/tx.rs:161
↓ 2 callers
Method
inputs_mut_for_test
(&mut self)
src/tx.rs:131
↓ 2 callers
Function
next_merkle_level
(level: &[TxId])
src/merkle.rs:78
↓ 2 callers
Function
print_status
(chain: &Blockchain, miner: &Wallet)
src/main.rs:114
↓ 2 callers
Function
regtest_chain
()
tests/public_api.rs:3
↓ 2 callers
Method
root
(&self)
src/merkle.rs:24
↓ 2 callers
Method
sighash
(&self)
src/tx.rs:157
↓ 2 callers
Method
signature_mut_for_test
(&mut self)
src/tx.rs:44
↓ 2 callers
Function
sum_outputs
(outputs: &[TxOutput])
src/validation.rs:146
↓ 2 callers
Function
validate_block_header
( block: &Block, expected_previous_hash: BlockHash, expected_difficulty: Difficulty, )
src/validation.rs:11
↓ 2 callers
Method
validate_block_template
(&self, block: &Block)
src/chain.rs:181
↓ 2 callers
Function
validate_block_transactions
( block: &Block, starting_utxos: &UtxoSet, subsidy: Amount, )
src/validation.rs:34
↓ 1 callers
Method
address
(&self)
src/wallet.rs:23
↓ 1 callers
Method
as_str
(&self)
src/types.rs:30
↓ 1 callers
Method
force_invalid_pow_for_test
(&mut self)
src/block.rs:63
↓ 1 callers
Method
force_nonce_for_test
(&mut self, nonce: u64)
src/block.rs:57
↓ 1 callers
Method
header
(&self)
src/block.rs:43
↓ 1 callers
Method
height
(&self)
src/chain.rs:91
↓ 1 callers
Function
merkle_root
(leaves: &[TxId])
src/merkle.rs:67
↓ 1 callers
Method
proof
(&self, tx_index: usize)
src/merkle.rs:28
↓ 1 callers
Function
run_attack
()
src/main.rs:82
↓ 1 callers
Function
run_demo
()
src/main.rs:48
↓ 1 callers
Function
run_status
()
src/main.rs:42
↓ 1 callers
Method
short
(self)
src/types.rs:103
↓ 1 callers
Method
target_prefix
(self)
src/types.rs:68
↓ 1 callers
Method
to_hex
(self)
src/types.rs:87
↓ 1 callers
Method
units
(self)
src/amount.rs:20
↓ 1 callers
Method
validate_block
(&self, block: &Block)
src/chain.rs:174
↓ 1 callers
Method
validate_candidate_chain
(&self, blocks: &[Block])
src/chain.rs:129
↓ 1 callers
Method
validate_transaction
(&self, tx: &Transaction)
src/chain.rs:86
↓ 1 callers
Method
validate_transactions_progressively
( &self, transactions: &[Transaction], )
src/chain.rs:194
↓ 1 callers
Method
verify
(&self, expected_tx_id: TxId, expected_root: TxId)
src/merkle.rs:51
Method
accumulated_work
(&self)
src/chain.rs:121
Method
add
(self, rhs: Self)
src/amount.rs:42
Method
balance
(&self, address: &Address)
src/chain.rs:117
Function
block_with_fake_pow_is_rejected
()
src/tests/protocol.rs:109
Function
block_with_tampered_body_is_rejected
()
src/tests/protocol.rs:89
Method
coinbase
(height: Height, miner: Address, reward: Amount)
src/tx.rs:58
Method
coinbase_with_inputs_for_test
( height: Height, miner: Address, reward: Amount, inputs: Vec<TxInput>, )
src/tx.rs:99
Function
coinbase_with_inputs_is_rejected
()
src/tests/protocol.rs:274
Method
coins
(coins: u64)
src/amount.rs:16
Function
different_genesis_candidate_chain_is_rejected
()
src/tests/invariants.rs:87
Function
duplicate_input_inside_one_transaction_is_rejected
()
src/tests/protocol.rs:161
Function
empty_non_coinbase_transaction_is_rejected
()
src/tests/protocol.rs:181
Function
equal_work_candidate_chain_is_not_adopted
()
src/tests/invariants.rs:58
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/types.rs:36
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/amount.rs:56
Function
forged_signature_is_rejected
()
src/tests/protocol.rs:38
Method
from_public_key
(public_key: &[u8; PUBKEY_LEN])
src/types.rs:25
Method
from_units
(units: u64)
src/amount.rs:12
Function
inflationary_transaction_is_rejected
()
src/tests/protocol.rs:192
Function
intrablock_double_spend_is_rejected
()
src/tests/protocol.rs:143
Function
invalid_difficulty_values_are_rejected
()
src/tests/protocol.rs:14
Function
invalid_longer_candidate_chain_is_rejected_before_adoption
()
src/tests/invariants.rs:70
Function
main
()
src/main.rs:26
Function
malformed_addresses_are_rejected
()
src/tests/protocol.rs:26
Function
malformed_zero_amount_output_is_rejected
()
src/tests/protocol.rs:307
Method
maybe_replace_chain
(&mut self, blocks: Vec<Block>)
src/chain.rs:156
next →
1–100 of 122, ranked by callers