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
↓ 1 callers
Function
with_broadcast_channel_sender
inject blockchain lock
src/networking/filters.rs:84
↓ 1 callers
Function
with_peers_filter
inject peers db lock TODO Can this just be deleted? we should be able to just get the Peers DB from lazy_static global object PEERS_DB_GLOBAL
src/networking/filters.rs:59
↓ 1 callers
Function
with_wallet
inject wallet lock
src/networking/filters.rs:65
Method
add_block
add block at end of longest chain
src/test_utilities/test_manager.rs:55
Method
add_block_to_blockchain
(blockchain_lock: Arc<RwLock<Blockchain>>, block: Block)
src/blockchain.rs:363
Function
add_five_good_blocks
test we can produce five blocks in a row
src/blockchain.rs:1445
Method
add_golden_ticket
(&mut self, golden_ticket: GoldenTicket)
src/mempool.rs:72
Function
add_seven_good_blocks_and_two_golden_tickets
test we add blocks 6 and 7 because of suffient mining
src/blockchain.rs:1546
Function
add_seven_good_blocks_but_no_golden_tickets
test we do not add blocks 6 and 7 because of insuffient mining
src/blockchain.rs:1490
Function
add_ten_blocks_including_five_block_chain_reorg
add 10 blocks including chain reorganization and sufficient mining
src/blockchain.rs:1602
Function
bit_pack_test
code that packs/unpacks two 32-bit values into one 64-bit variable
src/blockchain.rs:1416
Function
block_downgrade_upgrade_test
downgrade and upgrade a block with transactions
src/block.rs:2082
Function
block_generate_hashes
test that we are properly generating pre_hash and hash
src/block.rs:1914
Function
block_merkle_root_test
confirm merkle root is being generated from transactions in block
src/block.rs:2057
Function
block_new_test
()
src/block.rs:1865
Function
block_serialize_for_net_test
confirm serialization / deserialization does not modify block content
src/block.rs:1983
Function
block_serialize_for_signature_hash
confirm we have not modified the length of the serialized block
src/block.rs:1924
Function
block_serialize_for_signature_hash_with_data
()
src/block.rs:1932
Function
block_sign_test
signs and verifies the signature of a block
src/block.rs:1892
Function
blockchain_roll_forward_staking_table_test_with_test_manager
()
src/staking.rs:1241
Function
blockchain_staking_deposits_test
()
src/staking.rs:1089
Function
blockring_add_block_test
confirm adding block changes nothing until on_chain_reorg
src/blockring.rs:508
Function
blockring_automatic_reorganization_test
adding blocks to blockchain wind / unwind blockring view of longest chain
src/blockring.rs:374
Function
blockring_manual_reorganization_test
winding / unwinding updates blockring view of longest chain
src/blockring.rs:248
Function
burnfee_burn_fee_adjustment_test
()
src/burnfee.rs:103
Function
burnfee_return_work_needed_test
()
src/burnfee.rs:88
Method
challenger_ip_address
(&self)
src/networking/message_types/handshake_challenge.rs:92
Method
check_block_consistency
(block: &Block)
src/test_utilities/test_manager.rs:585
Function
configure_storage
()
src/storage.rs:28
Method
connect_to_peer
Connect to a peer via websocket and spawn a Task to handle message received on the socket and pipe them to handle_peer_message().
src/network.rs:128
Method
convert_issuance_into_slip
(line: std::string::String)
src/storage.rs:170
Method
delete
runs when block is deleted for good
src/transaction.rs:677
Method
delete
(&self, utxoset: &mut AHashMap<SaitoUTXOSetKey, u64>)
src/block.rs:1843
Method
delete_block
(&mut self, block_id: u64, hash: SaitoHash)
src/blockring.rs:43
Method
delete_block
removes all slips in block when pruned / deleted
src/wallet.rs:135
Method
delete_block_from_disk
(filename: String)
src/storage.rs:114
Method
deserialize
(bytes: &Vec<u8>)
src/networking/api_message.rs:67
Method
deserialize
(bytes: &Vec<u8>)
src/networking/message_types/handshake_challenge.rs:43
Method
deserialize
(bytes: &Vec<u8>)
src/networking/message_types/request_blockchain_message.rs:26
Method
deserialize
(bytes: &Vec<u8>)
src/networking/message_types/send_block_head_message.rs:18
Method
deserialize
(bytes: &Vec<u8>)
src/networking/message_types/request_block_message.rs:68
Method
deserialize
(bytes: &Vec<u8>)
src/networking/message_types/send_blockchain_message.rs:55
Method
deserialize_for_net
Deserialize from bytes to a Block. [len of transactions - 4 bytes - u32] [id - 8 bytes - u64] [timestamp - 8 bytes - u64] [previous_block_hash - 32 by
src/block.rs:654
Method
deserialize_for_transaction
(bytes: Vec<u8>)
src/golden_ticket.rs:140
Method
deserialize_from_net
(bytes: Vec<u8>)
src/hop.rs:74
Method
deserialize_from_net
(bytes: Vec<u8>)
src/slip.rs:302
Method
deserialize_from_net
Deserialize from bytes to a Transaction. [len of inputs - 4 bytes - u32] [len of outputs - 4 bytes - u32] [len of message - 4 bytes - u32] [len of pat
src/transaction.rs:583
Method
drop
(&mut self)
src/storage.rs:209
Method
file_exists
(filename: &str)
src/storage.rs:52
Function
format_timestamp
( timestamp: u64, )
src/time.rs:11
Function
format_url_string
(host: [u8; 4], port: u16)
src/util.rs:1
Method
generate
( transactions: &mut Vec<Transaction>, previous_block_hash: SaitoHash, wallet_lock: Ar
src/block.rs:1663
Method
generate_block_filename
(block: &Block)
src/storage.rs:57
Method
generate_hop
( wallet_lock: Arc<RwLock<Wallet>>, to_publickey: SaitoPublicKey, hash_to_sign: SaitoH
src/hop.rs:35
Function
generate_keypair_from_privatekey
Create and return a keypair with the given hex u8 array as the private key
src/crypto.rs:64
Method
generate_last_shared_ancestor
( &self, peer_latest_block_id: u64, fork_id: SaitoHash, )
src/blockchain.rs:537
Method
generate_metadata
(&mut self, publickey: SaitoPublicKey)
src/transaction.rs:806
Method
generate_rebroadcast_transaction
generate ATR transaction using source transaction and output slip this assumes that the
src/transaction.rs:297
Method
generate_solution
TODO - review exact solution generated and mechanism to determine validity
src/golden_ticket.rs:27
Method
generate_transaction
this function exists largely for testing. It attempts to attach the requested fee to the transaction if possible. If not possible it reverts back to a
src/transaction.rs:161
Method
generate_vip_transaction
generate a transaction that has more outputs than inputs. this is primarily being used for testing but it will be used to populate the first block wit
src/transaction.rs:271
Function
get_block_handler
get block handler. TODO remove this. For now it is just in place as a simple means to transfer blocks to saito-lite so we can test the ability to seri
src/networking/handlers.rs:97
Method
get_block_hash
(&self)
src/networking/message_types/send_block_head_message.rs:30
Method
get_block_hash
(&self)
src/networking/message_types/request_block_message.rs:113
Method
get_block_id
(&self)
src/networking/message_types/request_block_message.rs:110
Method
get_broadcast_channel_sender
(&self)
src/peer.rs:212
Method
get_connection_id
(&self)
src/peer.rs:243
Method
get_filename
(&mut self)
src/wallet.rs:204
Method
get_fork_id
(&self)
src/blockchain.rs:78
Method
get_fork_id
(&self)
src/networking/message_types/request_blockchain_message.rs:47
Method
get_fork_id
(&self)
src/networking/message_types/request_block_message.rs:116
Method
get_has_issuance_transaction
(&self)
src/block.rs:309
Method
get_hash
(&self)
src/merkle.rs:33
Method
get_host
(&self)
src/peer.rs:237
Method
get_into_message_data
(self)
src/networking/api_message.rs:61
Method
get_is_connected_or_connecting
(&self)
src/peer.rs:234
Method
get_is_from_peer_list
(&self)
src/peer.rs:197
Method
get_issuance_transaction_idx
(&self)
src/block.rs:321
Method
get_lc
(&self)
src/wallet.rs:472
Method
get_message_data_as_string
(&self)
src/networking/api_message.rs:64
Method
get_message_name
(&self)
src/networking/api_message.rs:49
Method
get_mut_inputs
(&mut self)
src/transaction.rs:422
Method
get_port
(&self)
src/peer.rs:240
Method
get_publickey
(&self)
src/golden_ticket.rs:128
Method
get_routing_work_for_creator
(&self)
src/block.rs:338
Method
get_starting_hash
(&self)
src/networking/message_types/send_blockchain_message.rs:49
Method
get_sync_type
(&self)
src/networking/message_types/send_blockchain_message.rs:46
Method
get_target
(&self)
src/golden_ticket.rs:120
Method
get_timestamp
(&self)
src/transaction.rs:410
Method
get_utxokey
(&self)
src/wallet.rs:456
Method
handle_peer_command
Handlers for all the network API commands, e.g. REQBLOCK.
src/peer.rs:383
Method
handle_peer_message
handle any APIMessage from the socket. RESULT/ERROR will be matched to it's COMMAND via the ID and the Future will be polled via it's waker. Normal co
src/peer.rs:317
Method
handshake_and_synchronize_chain
After socket has been connected, the connector begins the handshake via SHAKINIT command. Once the handshake is complete, we synchronize the peers via
src/network.rs:197
Function
hop_new_test
()
src/hop.rs:102
Function
init_tests
()
src/test_setup.rs:3
Method
into_response
(self)
src/networking/handlers.rs:35
Method
is_atr_transaction
(&self)
src/transaction.rs:390
Method
is_valid_solution
TODO - review exact algorithm in use here
src/golden_ticket.rs:40
Method
load_block_from_disk
(filename: String)
src/storage.rs:106
Function
load_blocks_from_another_blockchain_test
()
src/blockchain.rs:1851
← previous
next →
301–400 of 495, ranked by callers