Skip to main content

Unanswered Questions

109 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-...
1 vote
0 answers
60 views

How can I import a legacy private key without a wallet file?

I have legacy private key. How can I import it on the newest Bitcoin Core? Please describe the steps I need to follow.
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' ...
0 votes
0 answers
72 views

bitcoin address was given to sender - it was converted to bitcoin cash address and was sent to my bitcoin Coinbase wallet

So, the address bitcoin cash was sent to - when converted is my bitcoin address - anyway to retrieve? Please help - willing to pay $$
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 ...
1 vote
0 answers
109 views

Getting "Public key is neither compressed or uncompressed" after trying to send with imported key

I still have a private key from an old Bitcoin wallet (circa 2012), and I have a private key. I downloaded the bitWallet app for iOS, entered my private key there and my wallet with balance and all ...
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
1 answer
136 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
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 ...
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 ...

15 30 50 per page
1
2 3 4 5
8