Unanswered Questions
128 questions with no upvoted or accepted answers
4
votes
0
answers
67
views
How to calculate the hashes in Lightning
I was wondering how I calculate the hashes regarding BOLT03 Specification:
The Revocation Pubkey is calculated like this:
revocationpubkey = revocation_basepoint * SHA256(revocation_basepoint || ...
4
votes
0
answers
305
views
Creating a P2SH-P2WPKH using Bitcoin Functional Test Framework
I'm using the Bitcoin Functional Test framework to understand how SegWit works by analyzing and building a P2SH-P2WPKH transaction.
When I run my code the transaction gets created, but when I inspect ...
4
votes
1
answer
1k
views
Generate addresses from Trezor's xPub using Python
I am trying to generate BIP32 HD addresses from my Trezors xPub key.
I keep getting errors with most of the libs our there. What am I missing?
pywallet:
from pywallet import wallet
xpub = '...
3
votes
1
answer
472
views
Partial private key recovery
I had the pleasure of setting up a Bitcoin wallet using the Blue Wallet app and diligently noted down the 52 characters of my private key on a piece of paper for backup purposes.
Upon revisiting the ...
3
votes
0
answers
56
views
What is the advantage of using truncated HASH256 over CRC32?
Some of the checksums in Bitcoin are the first 4 bytes of the HASH256 of the data. HASH256 is just double SHA256, so SHA256(SHA256(data)). What is the advantage of that over using a dedicated checksum ...
3
votes
0
answers
219
views
How can inputs be retrieved efficiently when parsing the bitcoin blockchain?
I downloaded the Bitcoin blockchain. I have a full node and I would like to do some parsing. I use RPC to send commands to Bitcoin Core from my Python program. When I get a block it works fine but the ...
3
votes
0
answers
2k
views
How to sign bitcoin raw transactions with Python offline
I have a raw bitcoin transaction created using createrawtransaction
unsigned_tx = "...
2
votes
0
answers
180
views
Bitcoin Core RPC server not working
I have downloaded and installed and got up and running a bitcoin core node, and it is running fine as far as people are connecting to it on port 8333 just fine. However I can't seem to connect to it ...
2
votes
0
answers
110
views
How to get transaction fee info using Python from an Electrum server?
I can get a raw transaction and parse it using electrum and bitcoinlib fairly easily:
import bitcoinlib
from electrum.daemon import Daemon
from electrum.simple_config import SimpleConfig
class ...
2
votes
0
answers
235
views
What tools can I use to create and replace RBF transactions?
I'd like to create transactions within my python application, that support replace-by-fee RBF (BIP125).
Apparently, if I want to be able to replace my transaction later on, I need to signal that ...
2
votes
1
answer
302
views
SPV client TCP connection in python
I am trying to implement an SPV client in python (for my own learning). I want to start by making a simple TCP connection to a full node, but I either cannot get a response to my version message, or ...
2
votes
0
answers
122
views
How to generate unspendable testnet bitcoin address with python?
I'm trying to generate a testnet address. However, I tried to write this python program (using help of various online code places), and I created this program. The program is designed to take a 20 ...
2
votes
0
answers
184
views
Proof-of-Stake: How to ensure immutability of the blockchain?
In Proof-of-Work, a miner tries to solve PoW puzzle based on the hash of previous block, such that in case of changing block B_i, all blocks after that (blocks B_i+1, B_i+2, ...) are no longer valid ...
2
votes
0
answers
863
views
How to convert a bitcoin address to the respective hash160 using bash?
I want to convert a list of bitcoin addresses to their respective hash160 values as illustrated using bash :
2
votes
0
answers
317
views
Is my understanding of Blockhain Endianness correct?
I know questions on this topic have been asked to death in a number of different ways. I also know that what endian order refers to specifically is dependent on context.
What I want are some ...