Skip to main content

Questions tagged [rust-bitcoin]

Filter by
Sorted by
Tagged with
1 vote
1 answer
78 views

I'm attempting to sweep funds from an address generated with the following descriptor: tr(ff13a3311d3e14239bcbb9dfd5d304f4b57c32c0b35d313cb5255f93d7b2dc68,and_v(v:pk(...
searsaw's user avatar
  • 111
2 votes
2 answers
36 views

I'm using the bitcoin rust crate to build my own CLI wallet. In my function where I'm constructing the TxIn's for my Transaction, is the actual script_sig required at the below step? Or does it ...
jiamijiang's user avatar
2 votes
1 answer
87 views

I'm trying to understand the primitives of Taproot and Musig2 so I can implement them into my application. I'm using the rust-bitcoin library and have written a script to create a Taproot address from ...
Ethan Marcus's user avatar
2 votes
1 answer
146 views

I try to concurrently monitor a bunch of signed but non published transactions. I want to detect asap if any of the inputs into these bond transactions have been used in another transaction in my ...
f321x's user avatar
  • 144
-1 votes
2 answers
173 views

Could not find any resources on how to build a simple bitcoin wallet in Rust? Please share some relevant resources or repositories.
lladane's user avatar
  • 38
1 vote
1 answer
243 views

I want to fund a PSBT transaction that I created with Bitcoin rust. It looks like there is no such function to do that as the Creator is the only one that can set the inputs and outputs. There is an ...
David 天宇 Wong's user avatar
3 votes
2 answers
693 views

In rust-bitcoin, opcodes past the 0xba opcode are named as such: OP_RETURN_187, OP_RETURN_188, ..., OP_RETURN_254. Their description is all the same: Synonym for OP_RETURN. The definition for ...
thunderbiscuit's user avatar
3 votes
2 answers
570 views

I am looking for code examples (in rust-bitcoin, but even in Python) of how to calculate sighash for various input types. Specifically, I need to calculate the sighashes for M of N multisig unlocking ...
Alec Matusis's user avatar
3 votes
1 answer
1k views

Why is/was the Bitcoin Core HWI written in Python? What have the challenges been of having the HWI written in Python? There seems to be interest and rationale(s) to write another HWI in Rust. Would ...
Michael Folkson's user avatar
2 votes
1 answer
487 views

I have followed the steps to generate a p2pkh compressed base58 address and am consistently checking it to find that I get an invalid checksum. I am using this python code to check the address: (...
Poseidon's user avatar
  • 772
5 votes
2 answers
930 views

I'm trying to make a taproot HTLC using rust-bitcoin for an atomic swap protocol. My plan is that in the "happy case" of my protocol, the coins are spent with the key-path, and then there is ...
rijndael's user avatar
2 votes
1 answer
162 views

The first scriptsig opcode in this coinbase transaction is OP_RETURN_252, followed a bit later by a OP_RETURN_188. These don't show in this list of opcodes. Digging the internet, I found this rust lib ...
RooSoft's user avatar
  • 197
1 vote
1 answer
495 views

Using the Bitcoin crate, I'm trying to create a transaction programmatically in Rust that spends an output associated with a P2WPKH address. This is the relevant code snippet: fn sign_transaction<...
THLO's user avatar
  • 11
3 votes
1 answer
197 views

I'm trying to sign a segwit transaction in rust-bitcoin. To start with, my transaction setup looks as follows: let previous_output = OutPoint::new(Txid::from_hex("...
arik's user avatar
  • 218