MCPcopy Create free account

hub / github.com/Privacy-Cash/privacy-cash / functions

Functions208 in github.com/Privacy-Cash/privacy-cash

FunctiongenerateRandomNullifier
()
anchor/tests/spl_mint_test.ts:22
FunctiongetGlobalTestALT
()
anchor/tests/lib/test_alt.ts:275
Functioninitialize
(ctx: Context<Initialize>)
anchor/programs/zkcash/src/lib.rs:70
Functioninitialize_tree_account_for_spl_token
* Initialize a new merkle tree for a specific SPL token. * This allows each token type to have its own separate tree. * Only the authority c
anchor/programs/zkcash/src/lib.rs:153
Methodis_known_root
(tree_account: &MerkleTreeAccount, root: [u8; 32])
anchor/programs/zkcash/src/merkle_tree.rs:79
FunctionmockEncrypt
(value: Utxo)
anchor/tests/lib/utils.ts:27
Functionnegated_proof_a_verification_should_not_succeed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:359
Methodnew
( proof_a: &'a [u8; 64], proof_b: &'a [u8; 128], proof_c: &'a [u8; 64], public
anchor/programs/zkcash/src/groth16.rs:56
Functionnon_negated_proof_a_verification_should_not_succeed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:109
Methodprepare_inputs
(&mut self)
anchor/programs/zkcash/src/groth16.rs:89
Functionproof_verification_should_fail_for_correct_proof_but_modified_input
()
anchor/programs/zkcash/tests/unit/utils_test.rs:340
Functionproof_verification_should_fail_for_wrong_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:324
Functionproof_verification_should_succeed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:308
Functionproof_verification_should_succeed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:76
FunctionproveZkutil
* Generates a ZK proof using zkutil * * This is an alternative proving method using the zkutil command line tool. * It creates temporary files for
anchor/tests/lib/prover.ts:135
Functionpublic_input_greater_than_field_size_should_not_suceed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:478
Functionpublic_input_greater_than_field_size_should_not_suceed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:233
Functiontest_append_near_max_next_index
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:178
Functiontest_calculate_complete_ext_data_hash_basic
()
anchor/programs/zkcash/tests/unit/utils_test.rs:940
Functiontest_calculate_complete_ext_data_hash_consistency_with_borsh
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1171
Functiontest_calculate_complete_ext_data_hash_different_amounts
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1007
Functiontest_calculate_complete_ext_data_hash_different_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1037
Functiontest_calculate_complete_ext_data_hash_different_fees
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1141
Functiontest_calculate_complete_ext_data_hash_different_inputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:977
Functiontest_calculate_complete_ext_data_hash_empty_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1065
Functiontest_calculate_complete_ext_data_hash_large_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1083
Functiontest_calculate_complete_ext_data_hash_negative_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1123
Functiontest_calculate_complete_ext_data_hash_zero_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1105
Functiontest_change_endianness_empty
()
anchor/programs/zkcash/tests/unit/utils_test.rs:221
Functiontest_change_endianness_multiple_chunks
()
anchor/programs/zkcash/tests/unit/utils_test.rs:243
Functiontest_change_endianness_partial_chunk
()
anchor/programs/zkcash/tests/unit/utils_test.rs:263
Functiontest_change_endianness_proof_data
()
anchor/programs/zkcash/tests/unit/utils_test.rs:281
Functiontest_change_endianness_single_chunk
()
anchor/programs/zkcash/tests/unit/utils_test.rs:228
Functiontest_check_public_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:78
Functiontest_check_public_amount_addition_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:519
Functiontest_check_public_amount_fee_equals_to_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:98
Functiontest_check_public_amount_fee_larger_than_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:108
Functiontest_check_public_amount_field_size_boundary
()
anchor/programs/zkcash/tests/unit/utils_test.rs:531
Functiontest_check_public_amount_i64_min_overflow
()
anchor/programs/zkcash/tests/unit/utils_test.rs:497
Functiontest_check_public_amount_invalid_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:118
Functiontest_check_public_amount_max_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:188
Functiontest_check_public_amount_max_safe_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:554
Functiontest_check_public_amount_min_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:210
Functiontest_check_public_amount_mismatch
()
anchor/programs/zkcash/tests/unit/utils_test.rs:131
Functiontest_check_public_amount_neg_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:507
Functiontest_check_public_amount_negative_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:141
Functiontest_check_public_amount_negative_ext_amount_invalid_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:177
Functiontest_check_public_amount_negative_ext_amount_large_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:165
Functiontest_check_public_amount_negative_ext_amount_zero_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:153
Functiontest_check_public_amount_overflow
()
anchor/programs/zkcash/tests/unit/utils_test.rs:199
Functiontest_check_public_amount_safe_negative_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:543
Functiontest_check_public_amount_zero_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:88
Functiontest_is_less_than_bn254_field_size_be
()
anchor/programs/zkcash/tests/unit/utils_test.rs:296
Functiontest_is_less_than_bn254_field_size_be
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:64
Functiontest_multiple_appends
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:71
Functiontest_multiple_appends_verify_index_increments
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:105
Functiontest_root_history_wraparound
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:255
Functiontest_root_known_after_multiple_appends
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:207
Functiontest_single_append
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:46
Functiontest_tree_already_full
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:148
Functiontest_tree_full_capacity_check
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:128
Functiontest_tree_initialization
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:27
Functiontest_unknown_root_not_known
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:246
Functiontest_validate_fee_arithmetic_overflow_detection
()
anchor/programs/zkcash/src/utils.rs:492
Functiontest_validate_fee_arithmetic_overflow_detection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:840
Functiontest_validate_fee_deposit_above_minimum
()
anchor/programs/zkcash/src/utils.rs:343
Functiontest_validate_fee_deposit_above_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:699
Functiontest_validate_fee_deposit_below_minimum
()
anchor/programs/zkcash/src/utils.rs:356
Functiontest_validate_fee_deposit_below_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:712
Functiontest_validate_fee_deposit_exact_minimum
()
anchor/programs/zkcash/src/utils.rs:328
Functiontest_validate_fee_deposit_exact_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:684
Functiontest_validate_fee_edge_case_min_withdrawal
()
anchor/programs/zkcash/src/utils.rs:479
Functiontest_validate_fee_edge_case_min_withdrawal
()
anchor/programs/zkcash/tests/unit/utils_test.rs:827
Functiontest_validate_fee_exact_boundary_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:868
Functiontest_validate_fee_high_error_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:798
Functiontest_validate_fee_high_fee_error_margin
()
anchor/programs/zkcash/src/utils.rs:450
Functiontest_validate_fee_large_fee_rates
()
anchor/programs/zkcash/tests/unit/utils_test.rs:855
Functiontest_validate_fee_max_basis_points
()
anchor/programs/zkcash/tests/unit/utils_test.rs:898
Functiontest_validate_fee_overflow_protection
()
anchor/programs/zkcash/src/utils.rs:465
Functiontest_validate_fee_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:813
Functiontest_validate_fee_precision_edge_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:911
Functiontest_validate_fee_small_deposit_zero_expected
()
anchor/programs/zkcash/src/utils.rs:436
Functiontest_validate_fee_small_deposit_zero_expected
()
anchor/programs/zkcash/tests/unit/utils_test.rs:784
Functiontest_validate_fee_withdrawal_below_minimum
()
anchor/programs/zkcash/src/utils.rs:400
Functiontest_validate_fee_withdrawal_below_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:756
Functiontest_validate_fee_withdrawal_i64_min_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:883
Functiontest_validate_fee_withdrawal_large_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:925
Functiontest_validate_fee_withdrawal_with_rate
()
anchor/programs/zkcash/src/utils.rs:385
Functiontest_validate_fee_withdrawal_with_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:741
Functiontest_validate_fee_withdrawal_zero_rate
()
anchor/programs/zkcash/src/utils.rs:372
Functiontest_validate_fee_withdrawal_zero_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:728
Functiontest_validate_fee_zero_amount
()
anchor/programs/zkcash/src/utils.rs:423
Functiontest_validate_fee_zero_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:771
Functiontest_verify_proof_does_not_panic_on_edge_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:656
Functiontest_verify_proof_with_all_zero_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:585
Functiontest_verify_proof_with_invalid_proof_a_data
()
anchor/programs/zkcash/tests/unit/utils_test.rs:565
Functiontest_verify_proof_with_malformed_verifying_key
()
anchor/programs/zkcash/tests/unit/utils_test.rs:605
Functiontest_verify_proof_with_truncated_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:632
Functiontest_zero_root_not_known
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:237
Functiontransact
* Users deposit or withdraw SOL from the program. * * Reentrant attacks are not possible, because nullifier creation is checked by anchor f
anchor/programs/zkcash/src/lib.rs:215
← previousnext →101–200 of 208, ranked by callers