MCPcopy Create free account

hub / github.com/SaitoTech/saito-rust / functions

Functions495 in github.com/SaitoTech/saito-rust

↓ 68 callersMethodread
read from a path to a Vec<u8>
src/storage.rs:40
↓ 68 callersMethodwrite
(data: Vec<u8>, filename: &str)
src/storage.rs:47
↓ 51 callersMethodget_hash
(&self)
src/block.rs:252
↓ 43 callersFunctionhash
(data: &Vec<u8>)
src/crypto.rs:88
↓ 41 callersMethodset_amount
(&mut self, amount: u64)
src/slip.rs:174
↓ 39 callersMethodset_slip_type
(&mut self, slip_type: SlipType)
src/slip.rs:190
↓ 34 callersMethodadd_block
(&mut self, block: Block)
src/mempool.rs:60
↓ 32 callersMethodget_publickey
(&self)
src/peer.rs:209
↓ 31 callersMethodadd_block
(&mut self, mut block: Block)
src/blockchain.rs:82
↓ 28 callersMethodget_slip_type
(&self)
src/slip.rs:166
↓ 27 callersMethodis_empty
(&self)
src/blockring.rs:130
↓ 24 callersFunctioncreate_timestamp
()
src/time.rs:4
↓ 24 callersMethodgenerate_block_and_metadata
( &self, parent_hash: SaitoHash, timestamp: u64, vip_transactions: usize,
src/test_utilities/test_manager.rs:259
↓ 24 callersMethodget_utxoset_key
33 bytes publickey 32 bytes uuid 8 bytes amount 1 byte slip_ordinal
src/slip.rs:290
↓ 24 callersMethodset_publickey
(&mut self, publickey: SaitoPublicKey)
src/peer.rs:206
↓ 22 callersMethodgenerate_metadata
before we validate the block we need to generate some information such as the hash of the transaction message data that is used to generate the signat
src/block.rs:1219
↓ 22 callersMethodget_privatekey
(&self)
src/wallet.rs:180
↓ 21 callersMethodserialize
(&self)
src/networking/api_message.rs:77
↓ 20 callersMethodadd_output
(&mut self, output_slip: Slip)
src/transaction.rs:382
↓ 20 callersMethodget_id
(&self)
src/block.rs:261
↓ 19 callersMethodget_amount
(&self)
src/slip.rs:150
↓ 19 callersMethodget_transactions
(&self)
src/block.rs:248
↓ 18 callersMethodsign
(&mut self, publickey: SaitoPublicKey, privatekey: SaitoPrivateKey)
src/block.rs:537
↓ 17 callersMethodadd_deposit
(&mut self, slip: Slip)
src/staking.rs:186
↓ 16 callersMethodadd_staker
slips are added in ascending order based on publickey and then UUID. this is simply to ensure that chain reorgs do not cause disagreements about which
src/staking.rs:195
↓ 15 callersMethodon_chain_reorganization
(&mut self, hash: SaitoHash, lc: bool)
src/blockring.rs:66
↓ 15 callersMethodset_uuid
(&mut self, uuid: SaitoHash)
src/slip.rs:182
↓ 14 callersMethodget_block
(&self, block_hash: &SaitoHash)
src/blockchain.rs:751
↓ 14 callersMethodget_publickey
(&self)
src/wallet.rs:184
↓ 13 callersMethodadd_input
(&mut self, input_slip: Slip)
src/transaction.rs:378
↓ 13 callersMethodget_timestamp
(&self)
src/block.rs:265
↓ 13 callersMethodon_chain_reorganization
keeps any blockchain variables like fork_id or genesis_period tracking variables updated as the chain gets new blocks. also pre-loads any blocks neede
src/blockchain.rs:1200
↓ 13 callersMethodserialize_for_signature
serialize major block components for block signature this will manually calculate the merkle_root if necessary but it is advised that the merkle_root
src/block.rs:580
↓ 12 callersMethodget_latest_block_id
(&self)
src/blockchain.rs:744
↓ 12 callersMethodget_longest_chain_block_hash_by_block_id
(&self, id: u64)
src/blockring.rs:205
↓ 12 callersMethodget_previous_block_hash
(&self)
src/block.rs:269
↓ 12 callersMethodget_transaction_type
(&self)
src/transaction.rs:414
↓ 12 callersMethodset_transaction_type
(&mut self, transaction_type: TransactionType)
src/transaction.rs:513
↓ 11 callersMethodset_slip_ordinal
(&mut self, slip_ordinal: u8)
src/slip.rs:186
↓ 10 callersMethodget_amount
(&self)
src/wallet.rs:460
↓ 9 callersMethodget_hash_for_signature
(&self)
src/transaction.rs:438
↓ 9 callersMethodget_inputs
(&self)
src/transaction.rs:418
↓ 9 callersMethodget_message_data
(&self)
src/networking/api_message.rs:58
↓ 9 callersMethodset_amount
(&mut self, amount: u64)
src/wallet.rs:496
↓ 9 callersMethodset_id
(&mut self, id: u64)
src/block.rs:396
↓ 8 callersMethodgenerate_hashes
(&mut self)
src/block.rs:561
↓ 8 callersMethodgenerate_utxoset_key
(&mut self)
src/slip.rs:281
↓ 8 callersMethodget_staking_treasury
(&self)
src/block.rs:289
↓ 8 callersMethodset_hash_for_signature
(&mut self, hash: SaitoHash)
src/transaction.rs:537
↓ 8 callersMethodset_message
(&mut self, message: Vec<u8>)
src/transaction.rs:525
↓ 8 callersMethodset_publickey
(&mut self, publickey: SaitoPublicKey)
src/wallet.rs:192
↓ 7 callersMethodadd_block
(&mut self, block_id: u64, hash: SaitoHash)
src/blockring.rs:38
↓ 7 callersMethodget_block_sync
(&self, block_hash: &SaitoHash)
src/blockchain.rs:748
↓ 7 callersMethodget_burnfee
(&self)
src/block.rs:293
↓ 7 callersMethodget_difficulty
(&self)
src/block.rs:301
↓ 7 callersMethodget_has_golden_ticket
(&self)
src/block.rs:305
↓ 7 callersMethodget_outputs
(&self)
src/transaction.rs:430
↓ 7 callersMethodget_slip_ordinal
(&self)
src/wallet.rs:476
↓ 7 callersMethodget_total_fees
(&self)
src/block.rs:334
↓ 7 callersMethodreset_staker_table
resets the staker table without using floating-point division, we calculate the share that each staker should earn of the upcoming sweep through the
src/staking.rs:74
↓ 7 callersMethodserialize_for_net
(&self)
src/hop.rs:87
↓ 7 callersMethodset_uuid
(&mut self, hash: SaitoHash)
src/wallet.rs:488
↓ 6 callersMethodget_latest_block_hash
(&self)
src/blockring.rs:213
↓ 6 callersMethodget_mut_block
(&mut self, block_hash: &SaitoHash)
src/blockchain.rs:755
↓ 6 callersMethodget_to
(&self)
src/hop.rs:54
↓ 6 callersMethodget_treasury
(&self)
src/block.rs:285
↓ 6 callersMethodget_uuid
(&self)
src/wallet.rs:452
↓ 6 callersMethodsend_command
( &mut self, command: &str, message: Vec<u8>, )
src/peer.rs:258
↓ 6 callersMethodsend_error_response_from_str
Helper function for sending basic errors with a string message.
src/peer.rs:300
↓ 6 callersFunctionsend_message_to_socket
Sends an APIMessage to a socket connection. Since Outbound and Inbound peers Streams(Sinks) are not unified into a single Trait yet, we must check bot
src/peer.rs:133
↓ 6 callersMethodserialize_for_net
Serialize a Transaction for transport or disk. [len of inputs - 4 bytes - u32] [len of outputs - 4 bytes - u32] [len of message - 4 bytes - u32] [len
src/transaction.rs:643
↓ 6 callersMethodset_timestamp
(&mut self, timestamp: u64)
src/block.rs:406
↓ 6 callersFunctionsign
(message_bytes: &[u8], privatekey: SaitoPrivateKey)
src/crypto.rs:101
↓ 5 callersMethodadd_transaction
(&mut self, tx: Transaction)
src/block.rs:464
↓ 5 callersMethodas_str
(&self)
src/configuration.rs:63
↓ 5 callersMethodcheck_token_supply
(&self)
src/test_utilities/test_manager.rs:469
↓ 5 callersMethodcheck_utxoset
check that everything spendable in the main UTXOSET is spendable on the longest chain and vice-versa.
src/test_utilities/test_manager.rs:367
↓ 5 callersMethodget_block_hash
(&self)
src/wallet.rs:468
↓ 5 callersMethodget_from
(&self)
src/hop.rs:50
↓ 5 callersMethodget_latest_block_hash
(&self)
src/blockchain.rs:740
↓ 5 callersMethodget_message
(&self)
src/transaction.rs:434
↓ 5 callersMethodget_signature
(&self)
src/transaction.rs:442
↓ 5 callersMethodget_signature
(&self)
src/block.rs:281
↓ 5 callersMethodon_chain_reorganization
handle staking / pending / deposit tables returns slips to SPEND, UNSPEND and DELETE this is required as staking table controlled by blockchain and
src/staking.rs:271
↓ 5 callersMethodset_merkle_root
(&mut self, merkle_root: SaitoHash)
src/block.rs:424
↓ 5 callersMethodset_signature
(&mut self, signature: SaitoSignature)
src/block.rs:430
↓ 5 callersMethodset_transactions
TODO refactor: All of these setters which are setting something which is included in the pre_hash or hash are dangerous. The purpose of the set/get pa
src/block.rs:387
↓ 5 callersFunctionverify
(msg: &[u8], sig: SaitoSignature, publickey: SaitoPublicKey)
src/crypto.rs:108
↓ 4 callersFunctionclean_peers_dbs
This doesn't currently seem to create a problem, but I think
src/network.rs:501
↓ 4 callersFunctioncreate_socket_and_do_handshake
This function will be used in mosts test of network, it will open a socket, negotiate a handshake, and return the socket so we are ready to start send
src/network.rs:526
↓ 4 callersMethoddelete_slip
(&mut self, slip: &Slip)
src/wallet.rs:174
↓ 4 callersMethodgenerate_merkle_root
TODO - this logic should probably be in the merkle-root class
src/block.rs:725
↓ 4 callersFunctiongenerate_random_bytes
(len: u64)
src/crypto.rs:80
↓ 4 callersMethodgenerate_slips
the nolan_requested is omitted from the slips created - only the change address is provided as an output. so make sure that any function calling this
src/wallet.rs:225
↓ 4 callersMethodget_pre_hash
(&self)
src/block.rs:329
↓ 4 callersMethodget_publickey
Getters and Setters
src/slip.rs:146
↓ 4 callersMethodsave
(&mut self)
src/wallet.rs:65
↓ 4 callersMethodsend_response
Helper function for sending RESULT__.
src/peer.rs:292
↓ 4 callersMethodset_burnfee
(&mut self, burnfee: u64)
src/block.rs:448
↓ 4 callersMethodset_difficulty
(&mut self, difficulty: u64)
src/block.rs:454
next →1–100 of 495, ranked by callers