Unanswered Questions
167 questions with no upvoted or accepted answers
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
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
1
answer
59
views
How to use bitcoin multisig to prioritize one of the parties?
Normally when you use OP_CHECKMULTISIG you're basically setting up something like x-of-y, where any x of the y key holders can carry out a transaction.
I want to know, if you can repurpose this ...
3
votes
1
answer
324
views
Key Derivation - CKDprv & CKDpub
I would like to replicate this derivation of keys.
Chain m
ext pub: xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8
ext prv: ...
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 = "...
3
votes
2
answers
618
views
How to calculate P2WSH signatures with OP_CODESEPARATOR?
I read the bip143, but didn't understand how to calculate the scriptCode of p2wsh.
bip143 told us:
A new transaction digest algorithm is defined, but only applicable to sigops in version 0 witness ...
2
votes
0
answers
65
views
UniSat's `getPublicKey` returns internal key or output key when using Taproot?
According to UniSat documentation here, I can call window.unisat.getPublicKey to get the public key of the current account.
My address type is Taproot. After calling this function, I get a compressed ...
2
votes
0
answers
58
views
Using BIP32 derivations, can all seeds theoretically produce all public keys?
I was interested in how many possible combinations of BIP 32 derivation paths exist, which could result in a public key derived from a seed. While some people colloquially call it "unlimited,&...
2
votes
0
answers
123
views
Bitcoin Core stores public keys and balance unencrypted, a few questions
I came across this statement in the Sparrow Wallet documentation;
Unfortunately, Bitcoin Core stores your public keys and balance unencrypted on the computer it is running on. If this computer is ...
2
votes
0
answers
41
views
Lightning force close detection
┌────────────────────────────────────┐ ┌────────────────────────────┐
│ outputs contain revocation script? ├──yes──► force close w/ penalty = 3 │
└──────────────┬─────────────────────┘ ...
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
58
views
Ways of emulating OP_CAT
I understand that it's possible to emulate concatenation for up to 32 bits by calculating:
x || y = x + (y << len(x)),
where the left shift (L_SHIFT) can be performed through multiple ...
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 ...