MCPcopy Create free account

hub / github.com/KOSASIH/nPinA-pi-network / functions

Functions45 in github.com/KOSASIH/nPinA-pi-network

↓ 2 callersMethodcalculate_hash
(self, block)
src/distributed_ledger.py:47
↓ 1 callersMethodadd_transaction
(self, sender, receiver, amount)
src/distributed_ledger.py:22
↓ 1 callersMethodcreate_genesis_block
(self)
src/distributed_ledger.py:13
↓ 1 callersFunctiongenerate_keys
()
src/cryptography.py:9
↓ 1 callersMethodget_previous_hash
(self)
src/distributed_ledger.py:44
↓ 1 callersMethodis_chain_valid
(self, chain)
src/distributed_ledger.py:57
↓ 1 callersFunctionmain
()
tests/__init__.py:7
↓ 1 callersMethodmine_block
(self)
src/distributed_ledger.py:31
↓ 1 callersMethodpredict
(self, transactions)
src/ai_consensus.py:8
↓ 1 callersMethodpropagate_block
(self, block)
src/distributed_ledger.py:52
↓ 1 callersMethodreceive_block
(self, block)
src/distributed_ledger.py:74
↓ 1 callersMethodvalidate_transactions
(self, transactions)
src/distributed_ledger.py:67
Method__init__
(self, node_id, nodes)
src/distributed_ledger.py:7
Method__init__
(self, model_path)
src/ai_consensus.py:5
Functionadd_transaction
()
src/app.py:11
Functiondecrypt_message
(encrypted_message, private_key)
src/cryptography.py:18
Functionencrypt_message
(message, public_key)
src/cryptography.py:13
Functionhash_transaction
(transaction)
src/cryptography.py:4
Functionmine_block
()
src/app.py:17
Functionpreprocess_data
(data)
utils/data_processing.py:4
Functionreceive_block
()
src/app.py:22
MethodsetUp
(self)
tests/test_ai_consensus.py:7
MethodsetUp
(self)
tests/test_distributed_ledger.py:4
MethodsetUp
(self)
tests/test_cryptography.py:4
Functionsplit_data
(data, test_size)
utils/data_processing.py:9
MethodtearDown
(self)
tests/test_ai_consensus.py:19
MethodtearDown
(self)
tests/test_distributed_ledger.py:46
MethodtearDown
(self)
tests/test_cryptography.py:25
Methodtest_add_transaction
(self)
tests/test_distributed_ledger.py:14
Methodtest_calculate_hash
(self)
tests/test_distributed_ledger.py:26
Methodtest_create_genesis_block
(self)
tests/test_distributed_ledger.py:10
Methodtest_decrypt_message
(self)
tests/test_cryptography.py:21
Methodtest_encrypt_message
(self)
tests/test_cryptography.py:17
Methodtest_generate_keys
(self)
tests/test_cryptography.py:13
Methodtest_get_previous_hash
(self)
tests/test_distributed_ledger.py:22
Methodtest_hash_transaction
(self)
tests/test_cryptography.py:9
Methodtest_is_chain_valid
(self)
tests/test_distributed_ledger.py:34
Methodtest_mine_block
(self)
tests/test_distributed_ledger.py:18
Methodtest_predict
(self)
tests/test_ai_consensus.py:11
Methodtest_propagate_block
(self)
tests/test_distributed_ledger.py:30
Methodtest_receive_block
(self)
tests/test_distributed_ledger.py:42
Methodtest_train
(self)
tests/test_ai_consensus.py:15
Methodtest_validate_transactions
(self)
tests/test_distributed_ledger.py:38
Methodtrain
(self, transactions, labels)
src/ai_consensus.py:13
Functiontrain_model
(X_train, y_train, X_test, y_test, epochs, batch_size)
utils/model_training.py:6