Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZuoFuhong/blockchain_rust
/ functions
Functions
155 in github.com/ZuoFuhong/blockchain_rust
⨍
Functions
155
◇
Types & classes
20
Method
deserialize
(bytes: &[u8])
src/transaction.rs:267
Method
deserialize
从字节数组反序列化
src/block.rs:35
Method
find_utxo
查找所有未花费的交易输出 ( K -> txid_hex, V -> Vec<TXOutput )
src/blockchain.rs:101
Method
first
(&self)
src/memory_pool.rs:72
Method
from
(b: Block)
src/block.rs:85
Method
generate_genesis_block
生成创世块
src/block.rs:45
Method
len
(&self)
src/memory_pool.rs:48
Function
main
()
src/main.rs:60
Method
new
()
src/config.rs:20
Method
new
创建 UTXO 集
src/utxo_set.rs:15
Method
new
(tip_hash: String, db: Db)
src/blockchain.rs:232
Method
new
()
src/memory_pool.rs:12
Method
new
(blockchain: Blockchain)
src/server.rs:46
Method
new
创建一个钱包
src/wallet.rs:15
Method
new
()
src/wallets.rs:14
Method
new
(addr: String)
src/node.rs:10
Method
new
创建一个输入
src/transaction.rs:21
Method
new_block
新建一个区块
src/block.rs:17
Method
new_blockchain
创建区块链实例
src/blockchain.rs:51
Method
new_coinbase_tx
创建一个 coinbase 交易,该没有输入,只有一个输出
src/transaction.rs:96
Function
new_config
()
src/config.rs:69
Method
new_proof_of_work
(block: Block)
src/proof_of_work.rs:18
Method
new_utxo_transaction
创建一笔 UTXO 的交易
src/transaction.rs:112
Method
parse_socket_addr
(&self)
src/node.rs:18
Method
run
工作量证明的核心就是寻找有效的哈希
src/proof_of_work.rs:40
Function
test_add_block
()
src/blockchain.rs:277
Function
test_base58
()
src/utils.rs:90
Function
test_bigint_from_bytes
()
src/proof_of_work.rs:75
Function
test_block_serialize
()
src/block.rs:107
Function
test_blockchain_serialize
()
src/transaction.rs:286
Function
test_blocks_in_transit
()
src/memory_pool.rs:118
Function
test_create_blockchain
()
src/blockchain.rs:256
Function
test_ecdsa_sign_and_verify
()
src/utils.rs:100
Function
test_find_transaction
()
src/blockchain.rs:309
Function
test_get_addresses
()
src/wallets.rs:88
Function
test_get_balance
()
src/utxo_set.rs:139
Function
test_get_best_height
()
src/blockchain.rs:267
Function
test_get_block
()
src/blockchain.rs:299
Function
test_get_block_hashes
()
src/blockchain.rs:290
Function
test_memory_pool
()
src/memory_pool.rs:104
Function
test_mine_block
()
src/blockchain.rs:261
Function
test_new_block
()
src/block.rs:97
Function
test_new_wallet
()
src/wallet.rs:90
Function
test_new_wallets
()
src/wallets.rs:81
Function
test_node_is_known
()
src/node.rs:92
Function
test_remove
()
src/node.rs:77
Function
test_ripemd160
()
src/utils.rs:82
Function
test_send_get_block
()
src/server.rs:362
Function
test_send_get_transaction
()
src/server.rs:371
Function
test_sha256_digest
()
src/utils.rs:72
Function
test_target_bits
()
src/proof_of_work.rs:86
Function
test_validate_address
()
src/wallet.rs:96
Function
test_vec
()
src/server.rs:379
Method
update_blocks_tree
(blocks_tree: &Tree, block: &Block)
src/blockchain.rs:41
Method
uses_key
检查输入使用了指定密钥来解锁一个输出
src/transaction.rs:43
← previous
101–155 of 155, ranked by callers