Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SaitoTech/saito-rust
/ functions
Functions
495 in github.com/SaitoTech/saito-rust
⨍
Functions
495
◇
Types & classes
53
Method
load_blocks_from_disk
(blockchain_lock: Arc<RwLock<Blockchain>>)
src/storage.rs:79
Function
main
()
src/main.rs:29
Function
main
()
src/bin/saitocli.rs:85
Function
mempool_add_block_test
()
src/mempool.rs:408
Function
mempool_bundle_blocks_test
()
src/mempool.rs:418
Function
mempool_new_test
()
src/mempool.rs:401
Method
mine
(&mut self)
src/miner.rs:40
Function
missing_blocks_test
()
src/network.rs:752
Method
new
()
src/hop.rs:27
Method
new
(command: &str, message: Vec<u8>, peer: &mut SaitoPeer)
src/peer.rs:98
Method
new
(target: SaitoHash, random: SaitoHash, publickey: SaitoPublicKey)
src/golden_ticket.rs:18
Method
new
(wallet_lock: Arc<RwLock<Wallet>>)
src/mempool.rs:47
Method
new
(left: SaitoHash, right: SaitoHash, level: u8)
src/merkle.rs:16
Method
new
(wallet_lock: Arc<RwLock<Wallet>>)
src/blockchain.rs:57
Method
new
()
src/blockring.rs:26
Method
new
()
src/wallet.rs:30
Method
new
Create a Network
src/network.rs:73
Method
new
()
src/staking.rs:28
Method
new
()
src/slip.rs:51
Method
new
(wallet_lock: Arc<RwLock<Wallet>>)
src/miner.rs:26
Method
new
()
src/transaction.rs:72
Method
new
()
src/block.rs:74
Method
new
(blockchain_lock: Arc<RwLock<Blockchain>>, wallet_lock: Arc<RwLock<Wallet>>)
src/test_utilities/test_manager.rs:43
Method
new
(message_name: &str, message_id: u32, message_data: Vec<u8>)
src/networking/api_message.rs:31
Method
new
( (challenger_ip_address, challenger_public_key): ([u8; 4], SaitoPublicKey), (opponent_ip_adre
src/networking/message_types/handshake_challenge.rs:24
Method
new
(latest_block_id: u64, latest_block_hash: SaitoHash, fork_id: SaitoHash)
src/networking/message_types/request_blockchain_message.rs:18
Method
new
(block_hash: SaitoHash)
src/networking/message_types/send_block_head_message.rs:14
Method
new
(has_block_id: bool, has_block_hash: bool, has_sync_type: bool)
src/networking/message_types/request_block_message.rs:31
Method
new
( sync_type: SyncType, starting_hash: SaitoHash, blocks_data: Vec<SendBlockchainBlockD
src/networking/message_types/send_blockchain_message.rs:34
Method
new_from_string
( message_name: &str, message_id: u32, message_string: &str, )
src/networking/api_message.rs:38
Method
on_chain_reorganization
(&mut self, block: &Block, lc: bool)
src/wallet.rs:94
Method
on_chain_reorganization
Runs when the chain is re-organized
src/transaction.rs:689
Method
on_chain_reorganization
( &self, utxoset: &mut AHashMap<SaitoUTXOSetKey, u64>, longest_chain: bool, )
src/block.rs:1198
Method
opponent_ip_address
(&self)
src/networking/message_types/handshake_challenge.rs:96
Function
persistable
(input: TokenStream)
macros/src/lib.rs:59
Method
poll
(self: Pin<&mut Self>, cx: &mut Context<'_>)
src/peer.rs:112
Function
post_transaction_handler
POST tx filter. TODO remove this? I believe we want ot use the socket for everything... There is a SNDTRANS command which does this, but is currently
src/networking/handlers.rs:67
Method
print_lc
(&self)
src/blockring.rs:113
Method
propagate_block
send block to all peers
src/network.rs:276
Method
propagate_transaction
(wallet_lock: Arc<RwLock<Wallet>>, mut tx: Transaction)
src/network.rs:292
Function
read_issuance_file_test
()
src/storage.rs:233
Method
read_lines_from_file
(filename: P)
src/storage.rs:162
Method
return_burnfee_for_block_produced_at_current_timestamp_in_nolan
Returns an adjusted burnfee based on the start value provided and the difference between the current block timestamp and the previous block timestamp
src/burnfee.rs:52
Method
return_routing_work_needed_to_produce_block_in_nolan
Returns the amount of work needed to produce a block given the timestamp of the previous block, the current timestamp, and the y-axis of the burn fee
src/burnfee.rs:15
Method
return_token_supply_slips_from_disk
token issuance functions below
src/storage.rs:124
Function
run
This initialization function starts a dedicated thread that listens for local and global broadcast messages and triggers the necessary responses.
src/mempool.rs:291
Function
run
The entry point to the Saito consensus runtime
src/consensus.rs:42
Function
run
This function is called on initialization to setup the sending and receiving channels for asynchronous loops or message checks
src/blockchain.rs:1358
Method
run
Run consensus
src/consensus.rs:86
Function
run_server
Runs warp::serve to listen for incoming connections
src/network.rs:450
Function
save_and_restore_wallet_test
()
src/wallet.rs:531
Method
send_blocks_to_blockchain
( mempool_lock: Arc<RwLock<Mempool>>, blockchain_lock: Arc<RwLock<Blockchain>>, )
src/mempool.rs:239
Method
send_error_response
Helper function for sending errors
src/peer.rs:308
Function
serialize_for_net_test
()
src/transaction.rs:1180
Method
set_difficulty
(&mut self, difficulty: u64)
src/miner.rs:98
Method
set_privatekey
(&mut self, privatekey: SaitoPrivateKey)
src/wallet.rs:188
Method
set_target
(&mut self, target: SaitoHash)
src/miner.rs:94
Function
sign_message_test
()
src/crypto.rs:143
Function
signature_idempotency_test
()
src/block.rs:2122
Function
slip_addition_and_removal_from_utxoset
()
src/slip.rs:383
Function
slip_get_utxoset_key_test
()
src/slip.rs:369
Function
slip_new_test
()
src/slip.rs:338
Function
slip_serialization_for_net_test
()
src/slip.rs:374
Function
slip_serialize_for_signature_test
()
src/slip.rs:363
Function
staking_add_deposit_slip_and_payout_calculation_test
()
src/staking.rs:645
Function
staking_add_staker_slips_in_different_order_and_check_sorting_works
()
src/staking.rs:573
Function
staking_create_blockchain_with_many_staking_deposits_many_staker_payouts_per_block
()
src/staking.rs:951
Function
staking_create_blockchain_with_two_staking_deposits_one_staker_payout_per_block
()
src/staking.rs:751
Function
staking_remove_staker_code_handles_duplicates_properly
()
src/staking.rs:704
Function
symmetrical_encryption_works_test
test symmetrical encryption works properly
src/crypto.rs:133
Function
test_blockchain_causes_sndblkhd
()
src/network.rs:858
Function
test_challenge_serialize
()
src/networking/message_types/handshake_challenge.rs:141
Function
test_manager_blockchain_fork_test
use test_manager to generate blockchains and reorgs and test
src/blockchain.rs:1797
Function
test_message_serialize
()
src/networking/api_message.rs:93
Function
test_network_message_sending
()
src/network.rs:933
Function
test_request_block_message_serialize
()
src/networking/message_types/request_block_message.rs:127
Function
test_request_blockchain_message_serialize
()
src/networking/message_types/request_blockchain_message.rs:58
Function
test_send_block_head_message_serialize
()
src/networking/message_types/send_block_head_message.rs:41
Function
test_send_blockchain_message_serialize
()
src/networking/message_types/send_blockchain_message.rs:120
Function
test_serialize_for_signature
()
src/transaction.rs:1036
Function
test_serialize_for_signature_with_data
()
src/transaction.rs:1045
Function
test_sndblkhd
()
src/network.rs:699
Function
test_sndchain
()
src/network.rs:616
Function
transaction_generate_metadata_cumulative_fees_test
()
src/transaction.rs:1173
Function
transaction_new_test
()
src/transaction.rs:1005
Function
transaction_sign_test
()
src/transaction.rs:1023
Method
try_from
(s: String)
src/configuration.rs:74
Function
try_from_byte
(input: TokenStream)
macros/src/lib.rs:15
Function
tx_sign_with_data
()
src/transaction.rs:1108
Method
validate
(&self, utxoset: &UtxoSet, staking: &Staking)
src/transaction.rs:812
Method
validate_slip_in_deposits
(&self, slip: Slip)
src/staking.rs:159
Function
wallet_new_test
()
src/wallet.rs:523
Method
write_block_to_disk
(block: &mut Block)
src/storage.rs:66
Function
write_read_block_to_file_test
()
src/storage.rs:246
Function
ws_upgrade_handler
websocket upgrade handler. accepts an http connection and upgrades it to WebSocket. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade
src/networking/handlers.rs:43
← previous
401–495 of 495, ranked by callers