Unanswered Questions
86 questions with no upvoted or accepted answers
1
vote
1
answer
35
views
pywallet needs 'bsddb' package to run, please install it
On a Ubuntu 24.04.1 LTS VM I installed Python 2.7.18 via:
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
cd Python-2.7.18/
sudo ./configure --enable-...
0
votes
0
answers
38
views
Why are the results of BTC message signature implemented in Python different from those on electrum?
from bit import Key
from bit.format import verify_sig
import base64
from hashlib import sha256
# Use WIF format private key
wif_private_key = 'Kxb19KFrrqrmT79bvG4tnKibVcgppavcvjkP1iBGGjnH787H39QG'
...
1
vote
0
answers
55
views
python "pbkdf2_hmac" function doesn't return same as Ian Coleman BIP39 tool. Why?
I am trying to go from a BIP39 phrase to Seed to xprv root key. I have the following BIP39 phrase:
"prefer offer puppy imitate pink banana because whale letter thought artwork loud"
which ...
0
votes
0
answers
60
views
Python code to create a two-input transaction in test net
I made a transaction that can be spent by anyone and now I wanna spend it and bring it back to my address. The problem in it doesn't have enough bitcoin for transaction fee so I'm using another input ...
0
votes
0
answers
36
views
How to spend one or more p2tr inputs in python?
I see that bitcoinlib does not support taproot yet. Is there any good lib out there to spend one or more taproot inputs? I would like to create txs like this:
...
"inputs": [
{
&...
0
votes
1
answer
212
views
How to generate coinbase transaction in Python?
I know that on this forum a lot of questions on this topic, I have checked most of these, but can't find the solution for my task. I am creating my own algorithm for solo mining bitcoin on Python. I ...
0
votes
1
answer
268
views
How to convert signature to DER encoded format in python
vk = ecdsa.VerifyingKey.from_string(bytes.fromhex(pubKey),curve=ecdsa.SECP256k1)
if vk.verify(bytes.fromhex(signature), bytes.fromhex(sha256_hash), hashlib.sha256, sigdecode=sigdecode_der) == True: # ...
0
votes
0
answers
131
views
Old encrypted wallet + bitcoin core
I got desperate, I tried all the instructions I could find on the Internet - nothing helps.
What I have:
wallet.dat from bitcoin-core encrypted from 2015 (in four different
places)
the password I ...
0
votes
0
answers
118
views
Getting error "non-mandatory-script-verify-flag (Witness program hash mismatch)" when trying to send raw signed transaction
I'm trying to send a fairly simple segwit transaction with multiple input and outputs using bitcoinlib, here's how the simplified code looks like:
from bitcoinlib.transactions import Output, Key, ...
1
vote
0
answers
48
views
scantxoutset timing out
I have extremely simple python code to use scantxoutset.
The problem is that when I debug in pycharm it keeps timing out.
rpc_connection = rpcConnector.rpcConnect()
json_req = [{"desc": &...
3
votes
1
answer
471
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 ...
1
vote
1
answer
155
views
Deriving bip84 addresses with python
Does anyone have a python script deriving the bip84 addresses from the private key?
I do have the private root key so I don't need to go all the way from the private key.
I'd like to do this with the ...
1
vote
1
answer
131
views
Nonstandard witness when building a transaction
i try to spend a P2WSH 2of2 multisig input in Python for learning purposes.
When i check my assembled TX with testmempoolaccept i get "bad-witness-nonstandard".
This is my function to ...
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 ...
0
votes
1
answer
109
views
RPC to Umbrel returns 403
I have mangad to get closer to my goal.
My Code
# rpc_user and rpc_password are set in the bitcoin.conf file
rpc_user = "umbrel"
rpc_pass = "pass"
rpc_host = "192.168.1.122&...