Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Privacy-Cash/privacy-cash
/ functions
Functions
208 in github.com/Privacy-Cash/privacy-cash
⨍
Functions
208
◇
Types & classes
33
Function
generateRandomNullifier
()
anchor/tests/spl_mint_test.ts:22
Function
getGlobalTestALT
()
anchor/tests/lib/test_alt.ts:275
Function
initialize
(ctx: Context<Initialize>)
anchor/programs/zkcash/src/lib.rs:70
Function
initialize_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
Method
is_known_root
(tree_account: &MerkleTreeAccount, root: [u8; 32])
anchor/programs/zkcash/src/merkle_tree.rs:79
Function
mockEncrypt
(value: Utxo)
anchor/tests/lib/utils.ts:27
Function
negated_proof_a_verification_should_not_succeed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:359
Method
new
( proof_a: &'a [u8; 64], proof_b: &'a [u8; 128], proof_c: &'a [u8; 64], public
anchor/programs/zkcash/src/groth16.rs:56
Function
non_negated_proof_a_verification_should_not_succeed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:109
Method
prepare_inputs
(&mut self)
anchor/programs/zkcash/src/groth16.rs:89
Function
proof_verification_should_fail_for_correct_proof_but_modified_input
()
anchor/programs/zkcash/tests/unit/utils_test.rs:340
Function
proof_verification_should_fail_for_wrong_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:324
Function
proof_verification_should_succeed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:308
Function
proof_verification_should_succeed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:76
Function
proveZkutil
* 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
Function
public_input_greater_than_field_size_should_not_suceed
()
anchor/programs/zkcash/tests/unit/utils_test.rs:478
Function
public_input_greater_than_field_size_should_not_suceed
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:233
Function
test_append_near_max_next_index
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:178
Function
test_calculate_complete_ext_data_hash_basic
()
anchor/programs/zkcash/tests/unit/utils_test.rs:940
Function
test_calculate_complete_ext_data_hash_consistency_with_borsh
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1171
Function
test_calculate_complete_ext_data_hash_different_amounts
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1007
Function
test_calculate_complete_ext_data_hash_different_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1037
Function
test_calculate_complete_ext_data_hash_different_fees
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1141
Function
test_calculate_complete_ext_data_hash_different_inputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:977
Function
test_calculate_complete_ext_data_hash_empty_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1065
Function
test_calculate_complete_ext_data_hash_large_encrypted_outputs
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1083
Function
test_calculate_complete_ext_data_hash_negative_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1123
Function
test_calculate_complete_ext_data_hash_zero_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:1105
Function
test_change_endianness_empty
()
anchor/programs/zkcash/tests/unit/utils_test.rs:221
Function
test_change_endianness_multiple_chunks
()
anchor/programs/zkcash/tests/unit/utils_test.rs:243
Function
test_change_endianness_partial_chunk
()
anchor/programs/zkcash/tests/unit/utils_test.rs:263
Function
test_change_endianness_proof_data
()
anchor/programs/zkcash/tests/unit/utils_test.rs:281
Function
test_change_endianness_single_chunk
()
anchor/programs/zkcash/tests/unit/utils_test.rs:228
Function
test_check_public_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:78
Function
test_check_public_amount_addition_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:519
Function
test_check_public_amount_fee_equals_to_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:98
Function
test_check_public_amount_fee_larger_than_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:108
Function
test_check_public_amount_field_size_boundary
()
anchor/programs/zkcash/tests/unit/utils_test.rs:531
Function
test_check_public_amount_i64_min_overflow
()
anchor/programs/zkcash/tests/unit/utils_test.rs:497
Function
test_check_public_amount_invalid_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:118
Function
test_check_public_amount_max_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:188
Function
test_check_public_amount_max_safe_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:554
Function
test_check_public_amount_min_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:210
Function
test_check_public_amount_mismatch
()
anchor/programs/zkcash/tests/unit/utils_test.rs:131
Function
test_check_public_amount_neg_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:507
Function
test_check_public_amount_negative_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:141
Function
test_check_public_amount_negative_ext_amount_invalid_ext_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:177
Function
test_check_public_amount_negative_ext_amount_large_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:165
Function
test_check_public_amount_negative_ext_amount_zero_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:153
Function
test_check_public_amount_overflow
()
anchor/programs/zkcash/tests/unit/utils_test.rs:199
Function
test_check_public_amount_safe_negative_values
()
anchor/programs/zkcash/tests/unit/utils_test.rs:543
Function
test_check_public_amount_zero_fee
()
anchor/programs/zkcash/tests/unit/utils_test.rs:88
Function
test_is_less_than_bn254_field_size_be
()
anchor/programs/zkcash/tests/unit/utils_test.rs:296
Function
test_is_less_than_bn254_field_size_be
()
anchor/programs/zkcash/tests/unit/groth16_test.rs:64
Function
test_multiple_appends
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:71
Function
test_multiple_appends_verify_index_increments
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:105
Function
test_root_history_wraparound
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:255
Function
test_root_known_after_multiple_appends
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:207
Function
test_single_append
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:46
Function
test_tree_already_full
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:148
Function
test_tree_full_capacity_check
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:128
Function
test_tree_initialization
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:27
Function
test_unknown_root_not_known
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:246
Function
test_validate_fee_arithmetic_overflow_detection
()
anchor/programs/zkcash/src/utils.rs:492
Function
test_validate_fee_arithmetic_overflow_detection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:840
Function
test_validate_fee_deposit_above_minimum
()
anchor/programs/zkcash/src/utils.rs:343
Function
test_validate_fee_deposit_above_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:699
Function
test_validate_fee_deposit_below_minimum
()
anchor/programs/zkcash/src/utils.rs:356
Function
test_validate_fee_deposit_below_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:712
Function
test_validate_fee_deposit_exact_minimum
()
anchor/programs/zkcash/src/utils.rs:328
Function
test_validate_fee_deposit_exact_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:684
Function
test_validate_fee_edge_case_min_withdrawal
()
anchor/programs/zkcash/src/utils.rs:479
Function
test_validate_fee_edge_case_min_withdrawal
()
anchor/programs/zkcash/tests/unit/utils_test.rs:827
Function
test_validate_fee_exact_boundary_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:868
Function
test_validate_fee_high_error_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:798
Function
test_validate_fee_high_fee_error_margin
()
anchor/programs/zkcash/src/utils.rs:450
Function
test_validate_fee_large_fee_rates
()
anchor/programs/zkcash/tests/unit/utils_test.rs:855
Function
test_validate_fee_max_basis_points
()
anchor/programs/zkcash/tests/unit/utils_test.rs:898
Function
test_validate_fee_overflow_protection
()
anchor/programs/zkcash/src/utils.rs:465
Function
test_validate_fee_overflow_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:813
Function
test_validate_fee_precision_edge_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:911
Function
test_validate_fee_small_deposit_zero_expected
()
anchor/programs/zkcash/src/utils.rs:436
Function
test_validate_fee_small_deposit_zero_expected
()
anchor/programs/zkcash/tests/unit/utils_test.rs:784
Function
test_validate_fee_withdrawal_below_minimum
()
anchor/programs/zkcash/src/utils.rs:400
Function
test_validate_fee_withdrawal_below_minimum
()
anchor/programs/zkcash/tests/unit/utils_test.rs:756
Function
test_validate_fee_withdrawal_i64_min_protection
()
anchor/programs/zkcash/tests/unit/utils_test.rs:883
Function
test_validate_fee_withdrawal_large_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:925
Function
test_validate_fee_withdrawal_with_rate
()
anchor/programs/zkcash/src/utils.rs:385
Function
test_validate_fee_withdrawal_with_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:741
Function
test_validate_fee_withdrawal_zero_rate
()
anchor/programs/zkcash/src/utils.rs:372
Function
test_validate_fee_withdrawal_zero_rate
()
anchor/programs/zkcash/tests/unit/utils_test.rs:728
Function
test_validate_fee_zero_amount
()
anchor/programs/zkcash/src/utils.rs:423
Function
test_validate_fee_zero_amount
()
anchor/programs/zkcash/tests/unit/utils_test.rs:771
Function
test_verify_proof_does_not_panic_on_edge_cases
()
anchor/programs/zkcash/tests/unit/utils_test.rs:656
Function
test_verify_proof_with_all_zero_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:585
Function
test_verify_proof_with_invalid_proof_a_data
()
anchor/programs/zkcash/tests/unit/utils_test.rs:565
Function
test_verify_proof_with_malformed_verifying_key
()
anchor/programs/zkcash/tests/unit/utils_test.rs:605
Function
test_verify_proof_with_truncated_proof_a
()
anchor/programs/zkcash/tests/unit/utils_test.rs:632
Function
test_zero_root_not_known
()
anchor/programs/zkcash/tests/unit/merkle_tree_test.rs:237
Function
transact
* 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
← previous
next →
101–200 of 208, ranked by callers