MCPcopy Create free account

hub / github.com/BitVM/BitVM / functions

Functions2,120 in github.com/BitVM/BitVM

↓ 8 callersFunctionu4_drop
Drops n u4 (1 element) elements of the stack
bitvm/src/u4/u4_std.rs:69
↓ 8 callersFunctionwrap_hints_dense_dense_mul
dmul
bitvm/src/chunk/g16_runner_utils.rs:138
↓ 7 callersFunctionapi_generate_full_tapscripts
Step 2 given public keys and the partial scripts generated in api_generate_partial_script() it generates the complete disprove scripts
bitvm/src/chunk/api.rs:183
↓ 7 callersFunctioncreate_peg_out_graph
()
bridge/tests/bridge/client/musig2_peg_out.rs:444
↓ 7 callersFunctionextern_hash_fps
(fqs: Vec<ark_bn254::Fq>)
bitvm/src/chunk/helpers.rs:44
↓ 7 callersFunctionget_assertions_from_signature
decode signature to assertion mirror of get_signature_from_assertion
bitvm/src/chunk/api_runtime_utils.rs:332
↓ 7 callersMethodget_script
(ps: &Parameters)
bitvm/src/signatures/winternitz.rs:585
↓ 7 callersFunctionhash_pair
Utility function to hash two nodes together
header-chain/src/utils.rs:18
↓ 7 callersFunctionhinted_check_chord_line
check whether a tuple coefficient (alpha, -bias) of a chord line is satisfied with expected points T and Q (both are affine cooordinates) two aspects:
bitvm/src/bn254/g2.rs:740
↓ 7 callersMethodinto
(self)
header-chain/src/header_chain.rs:152
↓ 7 callersMethodis_final_script
(&self)
bitvm/src/chunk/g16_runner_utils.rs:70
↓ 7 callersMethodmax_digit
Maximum value of a digit
bitvm/src/signatures/winternitz.rs:53
↓ 7 callersFunctionsimulate_peg_out_from_l2
( client: &mut BitVMClient, peg_out_graph_id: &String, operator_context: &OperatorContext, wit
bridge/tests/bridge/client/musig2_peg_out.rs:601
↓ 7 callersMethodtxid
Returns the transaction id, in big-endian byte order. One must be careful when dealing with Bitcoin transaction ids, as they are little-endian in the
final-spv/src/transaction.rs:29
↓ 7 callersMethodzip
Zip the top two u{16N} elements input: a0 ... a{N-1} b0 ... b{N-1} output: a0 b0 ... ... a{N-1} b{N-1}
bitvm/src/bigint/std.rs:147
↓ 6 callersMethodbroadcast_peg_in_confirm
( &mut self, peg_in_graph_id: &String, )
bridge/src/client/client.rs:959
↓ 6 callersFunctionbroadcast_transactions_from_peg_out_graph
( client: &mut BitVMClient, peg_out_graph_id: &String, depositor_context: &DepositorContext, w
bridge/tests/bridge/client/musig2_peg_out.rs:332
↓ 6 callersFunctionchunk_point_ops_and_multiply_line_evals_step_2
( f: ElemG2Eval, )
bitvm/src/chunk/taps_point_ops.rs:701
↓ 6 callersFunctioncompress
(data: &Vec<u8>, level: i32)
bridge/src/utils.rs:156
↓ 6 callersFunctionconnect
(credentials: &SftpCredentials)
bridge/src/client/data_store/sftp.rs:279
↓ 6 callersFunctiondecompress
(data: &Vec<u8>)
bridge/src/utils.rs:160
↓ 6 callersFunctiongenerate_input
(tx: &Transaction, vout: usize)
bridge/src/graphs/peg_in.rs:666
↓ 6 callersMethodgenerate_proof
(&self, idx: u32)
final-spv/src/merkle_tree.rs:186
↓ 6 callersFunctiongenerate_test_winternitz_secret
(index: u8, message_size: usize)
bridge/tests/bridge/setup.rs:396
↓ 6 callersMethodget_connector_e
(&self, idx: usize)
bridge/src/transactions/assert_transactions/utils.rs:29
↓ 6 callersFunctionget_proof
TODO: replace with actual implementation
bridge/src/proof.rs:14
↓ 6 callersFunctionget_signature_from_assertion
wots sign byte array using secrets mirror of get_assertions_from_signature
bitvm/src/chunk/api_runtime_utils.rs:298
↓ 6 callersFunctionget_superblock_hash_message
(sb: &Header)
bridge/src/superblock.rs:50
↓ 6 callersFunctionget_superblock_message
(sb: &Header)
bridge/src/superblock.rs:44
↓ 6 callersFunctionhinted_ell_by_constant_affine
input: f 12 elements p.x 1 element p.y 1 element output: new f 12 elements
bitvm/src/bn254/g2.rs:348
↓ 6 callersMethodmusig2_nonces
(&self)
bridge/src/transactions/take_2.rs:56
↓ 6 callersFunctionpopulate_taproot_input_witness
Use this function to populate taproot input witness for scripts containing any logic.
bridge/src/transactions/signing.rs:261
↓ 6 callersFunctionpre_sign_p2wsh_input
( tx: &mut T, input_index: usize, sighash_type: EcdsaSighashType, keypairs: &Vec<&Keypair>, )
bridge/src/transactions/pre_signed.rs:20
↓ 6 callersMethodserialize_to_byte_array
Serialize StateObject to byte array so that it can be wots-signed
bitvm/src/chunk/elements.rs:134
↓ 6 callersFunctionsetup_and_create_graphs
()
bridge/tests/bridge/client/validate.rs:89
↓ 6 callersFunctionsetup_and_create_graphs
()
bridge/tests/bridge/validate/validate.rs:170
↓ 6 callersFunctionsha256_stack
( stack: &mut StackTracker, num_bytes: u32, use_add_table: bool, use_full_xor: bool, )
bitvm/src/hash/sha256_u4_stack.rs:291
↓ 6 callersMethodsync_l2
(&mut self)
bridge/src/client/client.rs:259
↓ 6 callersFunctionu4_add_direct
Adds the given constant numbers and u32 variables. Variables in `to_copy` are copied and the original remains on the stack. Variables in `to_move` ar
bitvm/src/hash/blake3_utils.rs:201
↓ 6 callersFunctionu4_push_shift_tables_stack
Pushes left and right shift tables
bitvm/src/u4/u4_shift_stack.rs:29
↓ 5 callersFunctionapi_generate_partial_script
Step 1 The function takes public parameters (here verifying key) and generates partial script partial script is essentially disprove script minus the
bitvm/src/chunk/api.rs:176
↓ 5 callersFunctionbits_to_target
(bits: u32)
header-chain/src/header_chain.rs:297
↓ 5 callersFunctionchunk_frob_fp12
Assumes (1 + f) is valid Fp12 i.e. f != Fq6::ZERO power is in the range (0, 1, 2)
bitvm/src/chunk/taps_ext_miller.rs:203
↓ 5 callersFunctioncreate_and_mine_kick_off_1_tx
( client: &BitVMClient, operator_context: &OperatorContext, kick_off_1_funding_utxo_address: &Addr
bridge/tests/bridge/integration/peg_out/utils.rs:29
↓ 5 callersFunctioncreate_new_connectors
( network: Network, n_of_n_taproot_public_key: &XOnlyPublicKey, depositor_taproot_public_key: &XOn
bridge/src/graphs/peg_in.rs:587
↓ 5 callersFunctionexecute_script_without_stack_limit
(script: treepp::Script)
bitvm/src/lib.rs:127
↓ 5 callersFunctiongenerate_burn_script
()
bridge/src/scripts.rs:20
↓ 5 callersFunctiongenerate_n_of_n_public_key
(n_of_n_public_keys: &[PublicKey])
bridge/src/contexts/base.rs:23
↓ 5 callersFunctiongenerate_taproot_leaf_schnorr_signature
( tx: &mut Transaction, prev_outs: &[TxOut], input_index: usize, sighash_type: TapSighashType,
bridge/src/transactions/signing.rs:164
↓ 5 callersFunctiongenerate_timelock_taproot_script
( public_key: &XOnlyPublicKey, num_blocks_timelock: u32, )
bridge/src/scripts.rs:137
↓ 5 callersFunctionget_assertion_from_segments
(segments: &[Segment])
bitvm/src/chunk/api_runtime_utils.rs:39
↓ 5 callersMethodget_driver
(&self)
bridge/src/client/data_store/data_store.rs:191
↓ 5 callersFunctionget_esplora_url
TODO: Needs to be updated for production environment.
bridge/src/client/esplora.rs:9
↓ 5 callersFunctionget_start_time_block_number
TODO: Implement selecting a block that marks the start of a superblock measurement period that lasts for the period ∆C (e.g. 2000 blocks), during wh
bridge/src/superblock.rs:18
↓ 5 callersFunctionget_superblock_header
()
bridge/tests/bridge/helper.rs:222
↓ 5 callersFunctionhinted_check_tangent_line
check whether a tuple coefficient (alpha, -bias) of a tangent line is satisfied with expected point T (affine) two aspects: 1. alpha * (2 * T.y) = 3 *
bitvm/src/bn254/g2.rs:574
↓ 5 callersFunctionhinted_ell_by_constant_affine_and_sparse_mul
( f: ark_bn254::Fq12, x: ark_bn254::Fq, y: ark_bn254::Fq, constant: &EllCoeff, )
bitvm/src/bn254/g2.rs:289
↓ 5 callersMethodmerge_data
Merges `data` into `self.data`. # Arguments `data` - Must be valid data verified via `BitVMClient::validate_data()` function
bridge/src/client/client.rs:579
↓ 5 callersFunctionpartial_scripts_from_segments
(segments: &[Segment])
bitvm/src/chunk/api_compiletime_utils.rs:198
↓ 5 callersMethodserialize
(&self, writer: &mut W)
final-spv/src/transaction.rs:59
↓ 5 callersFunctionsign_assert_tx_with_groth16_proof
( commitment_secrets: &HashMap<CommitmentMessageId, WinternitzSecret>, proof: &RawProof, )
bridge/src/transactions/assert_transactions/utils.rs:68
↓ 5 callersFunctiontest_sha256
(hex_in: &str)
bitvm/src/hash/sha256_u4.rs:509
↓ 5 callersFunctionu4_add_no_table
Addition of numbers consisting of nibble_count u4's in the parameter bases locations, without the table
bitvm/src/u4/u4_add.rs:209
↓ 5 callersFunctionu4_logic_nibs
Does bitwise operation with bases.len() elements at the top of the stack, both consisting of nibble_count u4's and at the positions of the bases vecto
bitvm/src/u4/u4_logic.rs:245
↓ 5 callersFunctionu4_rshift_stack
Calculates n'th right shift of the top u4 element with both tables
bitvm/src/u4/u4_shift_stack.rs:38
↓ 5 callersMethodupload_object
( &self, key: &str, data: &[u8], file_path: Option<&str>, )
bridge/src/client/data_store/sftp.rs:109
↓ 5 callersFunctionvalidate_assertions
Step 4 validate signed assertions returns index of disprove script generated in Step 2 and the witness required to execute this Disprove Script incase
bitvm/src/chunk/api.rs:273
↓ 5 callersFunctionxor_2_nibbles
Calculates bitwise XOR of two nibbles (x_{nibble_x} and y_{nibble_y}), each given by their u32 variable and the index of their nibble, consumes the ni
bitvm/src/hash/blake3_utils.rs:87
↓ 4 callersMethodadd_input_output
( &mut self, connector_c: &ConnectorC, input_script_index: usize, input_script
bridge/src/transactions/disprove.rs:189
↓ 4 callersMethodadd_inputs_and_output
allows for aggregating multiple inputs and one refund output
bridge/src/transactions/challenge.rs:117
↓ 4 callersMethodall_presigned_txs
(&self)
bridge/src/graphs/peg_out.rs:2463
↓ 4 callersMethodappend
Appends a new leaf to the MMR.
header-chain/src/mmr_native.rs:21
↓ 4 callersFunctionappend_bitcom_locking_script_to_partial_scripts
we can use mock_vk and mock_proof here because generating bitcommitments only requires knowledge of how the chunks are connected and the public keys t
bitvm/src/chunk/api_compiletime_utils.rs:79
↓ 4 callersFunctionblake3_compute_script_with_limb
Returns a script that computes the BLAKE3 hash of the message on the stack. The script processes compact message blocks and only unpacks them when ne
bitvm/src/hash/blake3.rs:349
↓ 4 callersMethodbroadcast_assert_final
( &mut self, peg_out_graph_id: &String, )
bridge/src/client/client.rs:1226
↓ 4 callersMethodbroadcast_assert_initial
( &mut self, peg_out_graph_id: &String, )
bridge/src/client/client.rs:1158
↓ 4 callersMethodbroadcast_disprove
( &mut self, peg_out_graph_id: &String, output_script_pubkey: ScriptBuf, )
bridge/src/client/client.rs:1235
↓ 4 callersMethodbroadcast_kick_off_1
(&mut self, peg_out_graph_id: &String)
bridge/src/client/client.rs:1044
↓ 4 callersMethodbroadcast_kick_off_2
(&mut self, peg_out_graph_id: &String)
bridge/src/client/client.rs:1097
↓ 4 callersMethodbroadcast_peg_out
( &mut self, peg_out_graph_id: &String, input: Input, )
bridge/src/client/client.rs:1015
↓ 4 callersMethodbroadcast_peg_out_confirm
( &mut self, peg_out_graph_id: &String, )
bridge/src/client/client.rs:1035
↓ 4 callersFunctioncalculate_double_sha256
(input: &[u8])
final-spv/src/utils.rs:3
↓ 4 callersFunctioncalculate_s_nib
( stack: &mut StackTracker, number: [StackVariable; 8], nib: u32, shift_table: StackVariable,
bitvm/src/hash/sha256_u4_stack.rs:146
↓ 4 callersFunctioncompute_c_wi
Finding C refer from Algorithm 5 of "On Proving Pairings"(https://eprint.iacr.org/2024/640.pdf)
bitvm/src/groth16/offchain_checker.rs:89
↓ 4 callersFunctionell_affine
Helper function to perform line function evaluation in affine coordinates
bitvm/src/bn254/ell_coeffs.rs:222
↓ 4 callersFunctionexecute_script_buf_optional_stack_limit
Executing a script on stack without `MAX_STACK_SIZE` limit is only for testing purposes \ Don't use in production without the stack limit (i.e. `stack
bitvm/src/lib.rs:137
↓ 4 callersFunctionexecute_script_from_signature
( segments: &[Segment], signed_assts: Signatures, disprove_scripts: &[ScriptBuf; NUM_TAPS], )
bitvm/src/chunk/api_runtime_utils.rs:556
↓ 4 callersFunctionextern_hash_nibbles
(msgs: Vec<[u8; 64]>)
bitvm/src/chunk/helpers.rs:54
↓ 4 callersMethodfetch_object
( &self, file_name: &str, file_path: Option<&str>, )
bridge/src/client/data_store/sftp.rs:195
↓ 4 callersFunctiongenerate_burn_script_address
(network: Network)
bridge/src/scripts.rs:24
↓ 4 callersMethodgenerate_proof
Generates a proof for a given index. Returns the leaf as well.
header-chain/src/mmr_native.rs:59
↓ 4 callersMethodgenerate_tx_in
(&self, input: &Input)
bridge/src/connectors/connector_4.rs:43
↓ 4 callersFunctionget_chain_adaptor
( network: DestinationNetwork, ethereum_config: Option<EthereumInitConfig>, mock_adaptor_config: O
bridge/src/client/chain/chain_adaptor.rs:20
↓ 4 callersFunctionget_commit_from_assert_commit_tx
(assert_commit_tx: &Transaction)
bridge/src/connectors/connector_c.rs:336
↓ 4 callersFunctionget_pegin_input
(config: &SetupConfig, sats: u64)
bridge/tests/bridge/integration/peg_in/peg_in.rs:243
↓ 4 callersFunctionget_segments_from_groth16_proof
( proof: ark_groth16::Proof<Bn<ark_bn254::Config>>, scalars: Vec<ark_bn254::Fr>, vk: &ark_groth16:
bitvm/src/chunk/api_runtime_utils.rs:241
↓ 4 callersFunctionget_test_tx
()
bridge/src/transactions/base.rs:296
↓ 4 callersFunctiongroth16_generate_segments
( skip_evaluation: bool, all_output_hints: &mut Vec<Segment>, eval_ins: InputProofRaw, pubs: P
bitvm/src/chunk/g16_runner_core.rs:88
↓ 4 callersFunctionhinted_affine_add_line
add two points T and Q x' = alpha^2 - T.x - Q.x y' = -bias - alpha * x' input on stack: T.x (2 elements) Q.x (2 elements) input of parameters: c3: a
bitvm/src/bn254/g2.rs:469
↓ 4 callersFunctionhinted_mul_by_char_on_phi_q
Stack: [q] q /in G2Affine compute q' = (q.x*beta_22, q.y)
bitvm/src/bn254/g2.rs:136
← previousnext →101–200 of 2,120, ranked by callers