MCPcopy Create free account

hub / github.com/KasarLabs/bitcoin-da / functions

Functions37 in github.com/KasarLabs/bitcoin-da

↓ 9 callersFunctionbuild_script
Builds a Bitcoin transaction script with specific embedded data. The function creates a transaction script that starts with an `OP_FALSE` followed by
crates/bitcoin-da/src/lib.rs:118
↓ 8 callersFunctioncreate_taproot_address
Creates a Bitcoin Taproot address with specific embedded data. The function generates a taproot address using a predefined internal private key and a
crates/bitcoin-da/src/lib.rs:155
↓ 7 callersFunctionget_bytes_from_state_diff
(state_diff: &[U256])
crates/bitcoin-da/tests/bitcoin_da_tests.rs:7
↓ 7 callersFunctionload_statediff_from_file
(file_path: &Path)
crates/bitcoin-da/tests/bitcoin_da_tests.rs:20
↓ 6 callersMethodcommit_tx
Sends a fixed amount to a P2TR address and returns the transaction ID. commitTx commits an output to the given taproot address, such that the output i
crates/bitcoin-da/src/lib.rs:291
↓ 5 callersFunctionextract_push_data
Extracts push data from a given TapScript. This function attempts to parse a given script, looking for a specific pattern of opcodes and then extract
crates/bitcoin-da/src/lib.rs:590
↓ 4 callersFunctionchunk_slice
Splits a slice of data into multiple chunks of a given size. # Arguments `slice` - The slice to be divided. `chunk_size` - The maximum size of each ch
crates/bitcoin-da/src/lib.rs:95
↓ 4 callersMethodwrite
Writes provided data into Bitcoin via a taproot address. # Arguments `data` - The data to be written to the blockchain. # Returns A `Result` conta
crates/bitcoin-da/src/lib.rs:486
↓ 3 callersMethodreveal_tx
Creates and sends a reveal transaction. Spends the output from the commit transaction and as part of the script satisfying the tapscript spend path, p
crates/bitcoin-da/src/lib.rs:328
↓ 2 callersFunctionfind_commit_idx_output_from_txid
Finds the index and output of the commit transaction from the given `txid`. The function retrieves the raw transaction for the given `txid` and searc
crates/bitcoin-da/src/lib.rs:187
↓ 2 callersMethodget_fees
(&self)
crates/bitcoin-da/src/lib.rs:553
↓ 2 callersFunctionpay_to_taproot_script
(taproot_key: &XOnlyPublicKey)
crates/bitcoin-da/src/lib.rs:164
↓ 2 callersMethodread_height
Reads and extracts data from transaction witnesses within a block at a given height. # Arguments `height` - The height of the block to inspect. # R
crates/bitcoin-da/src/lib.rs:444
↓ 2 callersMethodread_transaction
Reads and extracts data from a transaction's witness. # Arguments `hash` - The transaction ID. `block_hash` - Optional block hash where the transact
crates/bitcoin-da/src/lib.rs:401
↓ 1 callersFunctionbuild_taptree_from_script
(script: &Script)
crates/bitcoin-da/src/lib.rs:218
↓ 1 callersMethodgenerate_blocks
(&self, number_of_blocks: u32)
crates/bitcoin-da/src/lib.rs:253
Methodclose
close shuts down the client.
crates/bitcoin-da/src/lib.rs:267
Methodfmt
(&self, f: &mut fmt::Formatter)
crates/bitcoin-da/src/lib.rs:61
Methodfrom
(error: bitcoincore_rpc::Error)
crates/bitcoin-da/src/lib.rs:84
Methodnew
NewRelayer creates a new Relayer instance with the provided Config.
crates/bitcoin-da/src/lib.rs:243
Functiontest_chunk_slice
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:134
Functiontest_commit_tx
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:396
Functiontest_commit_tx_big_data
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:440
Functiontest_create_taproot_address
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:304
Functiontest_create_taproot_address_big_data
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:346
Functiontest_extract_push_data
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:170
Functiontest_get_bytes_from_file
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:114
Functiontest_get_fees
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:101
Functiontest_read_data_by_block_height
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:861
Functiontest_read_height
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:998
Functiontest_read_transaction
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:1022
Functiontest_read_transaction_from_mempool
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:937
Functiontest_reveal
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:495
Functiontest_reveal2
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:597
Functiontest_reveal_big_data
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:670
Functiontest_write_big_data
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:805
Functiontest_writee
()
crates/bitcoin-da/tests/bitcoin_da_tests.rs:754