@@ -199,14 +199,14 @@ signature = sign(message, key)
199199
200200- ` signature ` : The generated signature.
201201
202- ### 7. ` build_input_text(plaintext, user_aes_key, sender, contract, func_sig , signing_key) `
202+ ### 7. ` build_input_text(plaintext, user_aes_key, sender, contract, func_selector , signing_key) `
203203
204204** Purpose:** Builds input text by encrypting the plaintext and signing it.
205205
206206** Usage:**
207207
208208``` python
209- int_cipher_text, signature = build_input_text(plaintext, user_aes_key, sender, contract, func_sig , signing_key)
209+ int_cipher_text, signature = build_input_text(plaintext, user_aes_key, sender, contract, func_selector , signing_key)
210210```
211211
212212** Parameters:**
@@ -215,22 +215,22 @@ int_cipher_text, signature = build_input_text(plaintext, user_aes_key, sender, c
215215- ` user_aes_key ` : The user's AES key.
216216- ` sender ` : The sender's address.
217217- ` contract ` : The contract address.
218- - ` func_sig ` : The function signature .
218+ - ` func_selector ` : The function selector .
219219- ` signing_key ` : The private key used for signing.
220220
221221** Returns:**
222222
223223- ` int_cipher_text ` : The integer representation of the ciphertext.
224224- ` signature ` : The generated signature.
225225
226- ### 8. ` build_string_input_text(plaintext, user_aes_key, sender, contract, func_sig , signing_key) `
226+ ### 8. ` build_string_input_text(plaintext, user_aes_key, sender, contract, func_selector , signing_key) `
227227
228228** Purpose:** Builds input text by encrypting the plaintext and signing it.
229229
230230** Usage:**
231231
232232``` python
233- int_cipher_text, signature = build_string_input_text(plaintext, user_aes_key, sender, contract, func_sig , signing_key)
233+ int_cipher_text, signature = build_string_input_text(plaintext, user_aes_key, sender, contract, func_selector , signing_key)
234234```
235235
236236** Parameters:**
@@ -239,7 +239,7 @@ int_cipher_text, signature = build_string_input_text(plaintext, user_aes_key, se
239239- ` user_aes_key ` : The user's AES key.
240240- ` sender ` : The sender's address.
241241- ` contract ` : The contract address.
242- - ` func_sig ` : The function signature .
242+ - ` func_selector ` : The function selector .
243243- ` signing_key ` : The private key used for signing.
244244
245245** Returns:**
@@ -299,43 +299,7 @@ plaintext = decrypt_rsa(private_key_bytes, ciphertext)
299299
300300- ` plaintext ` : The decrypted message.
301301
302- ### 12. ` keccak256(data) `
303-
304- ** Purpose:** Computes the Keccak-256 hash of the provided data.
305-
306- ** Usage:**
307-
308- ``` python
309- hash_value = keccak256(data)
310- ```
311-
312- ** Parameters:**
313-
314- - ` data ` : The data to be hashed.
315-
316- ** Returns:**
317-
318- - ` hash_value ` : The computed hash.
319-
320- ### 13. ` get_func_sig(function_signature) `
321-
322- ** Purpose:** Computes the function signature hash using Keccak-256.
323-
324- ** Usage:**
325-
326- ``` python
327- func_sig_hash = get_func_sig(function_signature)
328- ```
329-
330- ** Parameters:**
331-
332- - ` function_signature ` : The function signature string.
333-
334- ** Returns:**
335-
336- - ` func_sig_hash ` : The first 4 bytes of the computed hash.
337-
338- ### 14. ` decrypt_uint(ciphertext, user_key) `
302+ ### 12. ` decrypt_uint(ciphertext, user_key) `
339303
340304** Purpose:** Decrypts a value stored in a contract using a user key
341305
@@ -354,7 +318,7 @@ plaintext = decrypt_uint(ciphertext, user_key)
354318
355319- ` result ` : The decrypted value.
356320
357- ### 15 . ` decrypt_string(ciphertext, user_key) `
321+ ### 13 . ` decrypt_string(ciphertext, user_key) `
358322
359323** Purpose:** Decrypts a value stored in a contract using a user key
360324
@@ -643,25 +607,7 @@ valid, gas_estimate = is_gas_units_estimation_valid(web3, tx)
643607- ` valid ` : Boolean indicating if the gas units are sufficient.
644608- ` gas_estimate ` : The estimated gas units.
645609
646- ### 16. ` get_function_signature(function_abi) `
647-
648- ** Purpose:** Generates the function signature from the ABI.
649-
650- ** Usage:**
651-
652- ``` python
653- func_sig = get_function_signature(function_abi)
654- ```
655-
656- ** Parameters:**
657-
658- - ` function_abi ` : The ABI of the function.
659-
660- ** Returns:**
661-
662- - ` func_sig ` : The function signature.
663-
664- ### 17. ` deploy_contract(contract, kwargs, tx_params) `
610+ ### 16. ` deploy_contract(contract, kwargs, tx_params) `
665611
666612** Purpose:** Deploys a contract with the given parameters.
667613
@@ -681,7 +627,7 @@ tx_receipt = deploy_contract(contract, kwargs, tx_params)
681627
682628- ` tx_receipt ` : The transaction receipt.
683629
684- ### 18 . ` exec_func_via_transaction(func, tx_params) `
630+ ### 17 . ` exec_func_via_transaction(func, tx_params) `
685631
686632** Purpose:** Executes a contract function via a transaction.
687633
@@ -700,7 +646,7 @@ tx_receipt = exec_func_via_transaction(func, tx_params)
700646
701647- ` tx_receipt ` : The transaction receipt.
702648
703- ### 19 . ` sign_and_send_tx(web3, private_key, transaction) `
649+ ### 18 . ` sign_and_send_tx(web3, private_key, transaction) `
704650
705651** Purpose:** Signs and sends a transaction.
706652
@@ -720,7 +666,7 @@ tx_receipt = sign_and_send_tx(web3, private_key, transaction)
720666
721667- ` tx_receipt ` : The transaction receipt.
722668
723- ### 20 . ` decrypt_value(contract_value, user_key) `
669+ ### 19 . ` decrypt_value(contract_value, user_key) `
724670
725671** Purpose:** Decrypts a value stored in a contract using a user key.
726672
0 commit comments