MCPcopy Index your code

hub / github.com/dfinity/bitcoin-developer-preview / functions

Functions108 in github.com/dfinity/bitcoin-developer-preview

↓ 100 callersMethodbuild
(self)
canister/src/test_builder.rs:32
↓ 59 callersMethodpush
Push a new block into the store.
canister/src/blockforest.rs:68
↓ 26 callersFunctiongenesis
(merkle_root: TxMerkleNode)
canister/src/test_builder.rs:53
↓ 16 callersMethodwith_transaction
(mut self, transaction: Transaction)
canister/src/test_builder.rs:27
↓ 15 callersMethodwith_output
(mut self, address: &Address, value: u64)
canister/src/test_builder.rs:98
↓ 10 callersMethodinsert_block
Insert a block into the blockchain.
canister/src/store.rs:110
↓ 7 callersFunctionfrom_proto
Converts a protobuf block into a `Block`.
canister/src/block.rs:51
↓ 6 callersMethodcontains
Returns true if a block exists in the tree, false otherwise.
canister/src/blockforest.rs:290
↓ 6 callersMethodinsert_tx
(&mut self, tx: &Transaction, height: Height)
canister/src/utxoset.rs:48
↓ 5 callersFunctionconcat
(mut a: Vec<T>, b: Vec<T>)
canister/src/blockforest.rs:323
↓ 5 callersMethoddepth
(&self)
canister/src/blockforest.rs:275
↓ 4 callersMethodextend
Extends the tree with the given block. Blocks can extend the tree in the following cases: The block is already present in the tree (no-op). The block
canister/src/blockforest.rs:213
↓ 4 callersMethodmain_chain_height
(&self)
canister/src/store.rs:137
↓ 3 callersFunctionbtc_address
Returns the regtest P2PKH address derived from the private key.
examples/rust/src/main.rs:194
↓ 3 callersMethodinsert_outpoint
(&mut self, outpoint: OutPoint, output: TxOut, height: Height)
canister/src/utxoset.rs:111
↓ 3 callersMethodroot
(&self)
canister/src/blockforest.rs:231
↓ 2 callersMethodanchor_hash
(&self)
canister/src/store.rs:168
↓ 2 callersMethodblockchains
Returns all the blockchains in the tree.
canister/src/blockforest.rs:256
↓ 2 callersFunctionbtc_address_str
()
examples/rust/src/main.rs:52
↓ 2 callersFunctiondelay
()
canister/src/adapter-shim.rs:137
↓ 2 callersMethodfind_mut
Returns a `BlockTree` where the hash of the root block matches the provided `block_hash` if it exists, and `None` otherwise.
canister/src/blockforest.rs:241
↓ 2 callersMethodget_balance
Returns the balance of a bitcoin address.
canister/src/store.rs:57
↓ 2 callersMethodget_current_chain
Returns the best guess on what the "current" blockchain is. The most likely chain to be "current", we hypothesize, is the longest chain of blocks wit
canister/src/blockforest.rs:100
↓ 2 callersMethodget_unstable_blocks
(&self)
canister/src/store.rs:144
↓ 2 callersMethodget_utxos
Returns the set of UTXOs for a given bitcoin address. Transactions with confirmations < `min_confirmations` are not considered.
canister/src/store.rs:71
↓ 2 callersMethodinto_set
(self)
canister/src/utxoset.rs:53
↓ 2 callersFunctionsolve
(header: &mut BlockHeader)
canister/src/test_builder.rs:160
↓ 2 callersMethodto_proto
(&self)
canister/src/store.rs:148
↓ 1 callersFunctionbuild_transaction
Builds a transaction that sends the given `amount` of satoshis to the `destination` address.
examples/common/src/lib.rs:22
↓ 1 callersMethodget_blocks
(&self)
canister/src/blockforest.rs:157
↓ 1 callersFunctionget_p2pkh_address
(private_key: &PrivateKey, network: Network)
examples/common/src/lib.rs:16
↓ 1 callersFunctionget_utxos
()
examples/rust/src/main.rs:58
↓ 1 callersFunctionheader
(prev_header: &BlockHeader, merkle_root: TxMerkleNode)
canister/src/test_builder.rs:143
↓ 1 callersMethodinsert_unspent_txs
Iterates over transaction outputs and adds unspents.
canister/src/utxoset.rs:101
↓ 1 callersMethodpop
Pop a block that is a successor to the `anchor` iff the block is stable.
canister/src/blockforest.rs:24
↓ 1 callersFunctionprocess_chain
(state: &mut State, num_blocks: u32)
canister/src/store.rs:187
↓ 1 callersMethodremove_spent_txs
Iterates over transaction inputs and removes spent outputs.
canister/src/utxoset.rs:58
↓ 1 callersFunctionsign_transaction
Sign a bitcoin transaction given the private key and the source address of the funds. Constraints: All the inputs are referencing outpoints that are
examples/common/src/lib.rs:91
↓ 1 callersMethodstable_height
(&self)
canister/src/store.rs:133
↓ 1 callersMethodtake_tree
(&mut self, root_block_hash: &BlockHash)
canister/src/blockforest.rs:148
↓ 1 callersFunctionto_proto
Converts a `Block` into a protobuf struct.
canister/src/block.rs:8
Functionbalance
()
examples/rust/src/main.rs:92
Functionbuild_transaction
( utxos: Vec<Utxo>, source_address: String, destination_address: String, amount: u64, fees
examples/common/src/main.rs:46
Functioncheck_candid_interface_compatibility
()
canister/src/main.rs:158
Functioncheck_candid_interface_compatibility
()
examples/common/src/main.rs:108
Methodcoinbase
()
canister/src/test_builder.rs:82
Functioncoinbase_tx
()
canister/src/utxoset.rs:209
Functiondetached_blocks
()
canister/src/blockforest.rs:390
Functiondetached_blocks_2
()
canister/src/blockforest.rs:422
Functionempty
()
canister/src/blockforest.rs:334
Functionforks
()
canister/src/blockforest.rs:357
Methodfrom
(err: GetUtxosError)
types/src/lib.rs:55
Methodfrom
(network: Network)
canister/src/candid_types.rs:25
Methodfrom_proto
(utxos_proto: proto::UtxoSet)
canister/src/utxoset.rs:165
Methodfrom_proto
(proto_state: proto::State)
canister/src/store.rs:157
Methodfrom_proto
(block_forest_proto: proto::BlockForest)
canister/src/blockforest.rs:173
Methodgenesis
()
canister/src/test_builder.rs:13
Functionget_balance
(request: GetBalanceRequest)
canister/src/main.rs:32
Functionget_balance_malformed_address
()
canister/src/main.rs:240
Functionget_balance_test
()
canister/src/main.rs:262
Functionget_current_chain_empty
()
canister/src/blockforest.rs:688
Functionget_current_chain_fork_at_first_block
()
canister/src/blockforest.rs:588
Functionget_current_chain_longer_fork
()
canister/src/blockforest.rs:563
Functionget_current_chain_multiple_forks
()
canister/src/blockforest.rs:621
Functionget_current_chain_multiple_forks_2
()
canister/src/blockforest.rs:660
Functionget_current_chain_single_blockchain
()
canister/src/blockforest.rs:519
Functionget_current_chain_two_contesting_trees
()
canister/src/blockforest.rs:541
Functionget_outgoing_transaction
()
canister/src/main.rs:122
Functionget_p2pkh_address
(private_key_wif: String, network: NetworkCandid)
examples/common/src/main.rs:32
Functionget_successors_request
()
canister/src/main.rs:98
Functionget_successors_response
(response_vec: Vec<u8>)
canister/src/main.rs:129
Functionget_utxos
(request: GetUtxosRequest)
canister/src/main.rs:44
Methodget_utxos
Returns the `UtxoSet` of a given bitcoin address.
canister/src/utxoset.rs:37
Functionget_utxos_does_not_include_other_addresses
()
canister/src/store.rs:494
Functionget_utxos_from_existing_utxo_set
()
canister/src/main.rs:191
Functionget_utxos_malformed_address
()
canister/src/main.rs:251
Functionget_utxos_min_confirmations
()
canister/src/main.rs:363
Functionget_utxos_min_confirmations_greater_than_chain_height
()
canister/src/store.rs:460
Functionhas_outgoing_transaction
()
canister/src/main.rs:116
Functioninit
(payload: InitPayload)
examples/rust/src/main.rs:42
Functioninsert_in_order
()
canister/src/blockforest.rs:454
Functioninsert_in_reverse_order
()
canister/src/blockforest.rs:471
Functioninsert_predecessor
()
canister/src/blockforest.rs:440
Functionmain
()
canister/build.rs:2
Functionmain
()
canister/src/main.rs:147
Functionmain
()
canister/src/adapter-shim.rs:16
Functionmain
()
canister/src/sync_demo.rs:20
Functionmain
()
examples/rust/src/main.rs:198
Functionmain
()
examples/common/src/main.rs:101
Functionmalformed_transaction
()
canister/src/main.rs:498
Methodnew
(strict: bool, network: Network)
canister/src/utxoset.rs:27
Methodnew
Create a new blockchain. The `delta` parameter specifies how many confirmations a block needs before it is considered stable. Stable blocks are assum
canister/src/store.rs:40
Methodnew
(delta: u64)
canister/src/blockforest.rs:16
Functionprocess_100k_blocks
()
canister/src/store.rs:385
Functionsend
(amount: u64, destination: String)
examples/rust/src/main.rs:127
Functionsend_transaction
(request: SendTransactionRequest)
canister/src/main.rs:78
Functionsign_transaction
( private_key_wif: String, serialized_transaction: Vec<u8>, source_address: String, )
examples/common/src/main.rs:87
Functionsingle_chain
()
canister/src/blockforest.rs:342
Functionspending
()
canister/src/utxoset.rs:244
Functionto_from_proto
()
canister/src/store.rs:235
next →1–100 of 108, ranked by callers