A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [private-key]

This tag should be used for questions pertaining to private keys. Private keys are used for signing transactions and allow the holder of the private key to spend the Bitcoin associated with the address derived from the private key.

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

A security need for Bitcoin to fork to quantum resistant algorithm in a few years?

in just a few years I believe that quantums will exist that break asymmetric ciphers, and bitcoin is based on asymmetric ones like public-key-cryptography, correct? Symmetric algorithms are supposed ...
0
votes
1answer
21 views

How Bitcoin Core calculate extended private masterkey from hdseed

I am testing a Bitcoin application, and to test the signing of transactions I use regtest with Bitcoin Core. But I have some problems, the first I have already published in a question that I still ...
4
votes
1answer
173 views

How many possible addresses per bitcoin private key?

Based on my research every bitcoin private key (compressed or uncompressed) can have 4 different addresses: P2PKH compressed and starts with 1 P2PKH uncompressed and starts with 1 P2SH and starts ...
0
votes
1answer
37 views

Priv Key with 58 characters to WIF

I have an old paper wallet with Private Keys of 58 characters (all starting with a 6). These can be imported e.g. on blockchain.com, but since I still have BSV on this key, I have to import/sweep it ...
1
vote
3answers
72 views

How to subtract two points on an elliptic curve?

Please tell me if there is a formula for A-B, (That is, subtraction of two points / minus). I know how two points are added, A + B this addition is described in detail (Please tell me how you can ...
0
votes
1answer
39 views

How to get uncompressed BTC address and private key from bit module for Python?

I am new in programming and BTC. I want to make some BTC address with private keys. Till now I learn that we have compressed and uncompressed private keys. But I get only compressed private keys and ...
1
vote
0answers
43 views

Re: Old bitcoin address fro BCH and BSV claiming

I have a BTC address from 2013 when I bought my BTC, it is a paper wallet (the BTC have been moved), but I want to claim my BCH and BSV (Is this correct I can also claim BSV?) and move it to my trezor....
0
votes
0answers
21 views

Edge private keys

I want to read the balance on my Edge wallet programatically. I have thus taken the wallet's Master Private Key, which I had expected to be a BIP39 seed phrase but is instead a hex value, and am ...
1
vote
1answer
35 views

Why is 'p2pkh:' prepended at the beginning of private key addresses in electrum?

I recently started a Blockchain course and came across the electrum software. While going through the list of wallet addresses and associated private keys I found that 'p2pkh' is placed at the start ...
0
votes
0answers
46 views

How to Generate an Extended Private Key from Command Line?

I'm trying to create an extended private key so I can create multiple public addresses that can be controlled using a single master key. I have a library which handles most of what I need, but I need ...
0
votes
1answer
53 views

Use hdseedid to give all addresses in bitcoin

I'm using bitcoin core version 0.18.1 and I'm studying Hd Wallet. I can see the value hdseedid, and I understand that it's HASH160 of my hd seed. Can I use this seed to retrieve all my keys? I tried ...
1
vote
1answer
57 views

What is the state of the Wasabi wallet - when will it be ready for mainstream mass usage? [closed]

The wasabi wallet https://twitter.com/wasabiwallet Is still under development. Anyone here who can tell about the roadmap? Whats the status currently and when is expected to be ready for mass ...
0
votes
1answer
39 views

Bitcoin wallets- question about control and centralization

Community, Just a quick simple question very important for me to understand about the security of wallet types. Are there bitcoin wallets which can shut down and block/freeze/control your bitcoin ...
2
votes
1answer
60 views

Bitcoin Private Key question

Thanks for your great content. I've got a question regarding Bitcoin Private Key. If a hacker stole a Private Key and took possession of the coins by entering the Private Key into his own preferred ...
0
votes
1answer
51 views

Delete a specific private key from an Electrum 3.3.8 wallet via the command line?

I imported a few private keys into my electrum wallet via the command line. Now I want to delete these specific private keys from electrum 3.3.8 - What is the command to delete these keys from my ...
0
votes
1answer
51 views

How long would it take for all the Bitcoin Key pairs to be calculated?

Is this even something one should be worried about?
4
votes
3answers
250 views

Are BTC Private Keys evenly distributed in 256bit space?

If we assume that there are ~2^96 private keys for EACH bitcoin address (2^256-160) and we assume that in cryptography it is considered good property of every hash function if it evenly distributes ...
1
vote
1answer
49 views

What exactly happens when I import private keys to my wallet?

I can create addresses with private keys and import those keys into my wallet to receive their unspent outputs to later spend. My question is split into two parts: What exactly happens when you ...
0
votes
1answer
64 views

When generate WIF private key , base58check('80'.decode('hex')) not prefix as '5'

i try to generate WIF private key with python. import base58 import hashlib def b58(hex): return base58.b58encode(hex) def sha256(hex): return hashlib.sha256(hex).digest() def main(): ...
0
votes
0answers
42 views

Getting Error “Unable to sign input, invalid stack size (possibly missing key)”

I have created a key from using coinstring, and then imported it into my wallet. Then I ran: bitcoin-cli signrawtransactionwithkey "$rawtxhex" "[\"$mykey$\"]" But it results in: Unable to sign ...
0
votes
2answers
63 views

How to use BitCoin private keys (a primer)

I am learning about BitCoin private keys and trying to figure out what the best way to use them are. I get their purpose and that they need a strong password, etc. But what I don't understand in ...
0
votes
0answers
42 views

What am I doing wrong when calculating the BitCoin Base58 Private Key?

I have this: const crypto = require('crypto') const bs58 = require('bs58') const a = crypto.randomBytes(32) const b = crypto.createHash('sha256').update(a).digest('hex') const c = '80' + b const d = ...
0
votes
1answer
81 views

How to start using signrawtransactionwithkey instead of signrawtransaction

I am following this tutorial, which says to use signrawtransaction. However, I get: error code: -32 error message: signrawtransaction was removed in v0.18. Clients should transition to using ...
0
votes
1answer
66 views

Is it possible to add two secp256k1 points to get a “shared key”?

As I know from the Elliptic Curve Diffie Hellman (ECDH), you can create a "Shared Key": https://asecuritysite.com/encryption/ecdh2 This will look like this: dA × dB × G = Shared Key QB = dB × G QA ...
3
votes
1answer
54 views

Why can't a longer key combat quantum computers?

Google's new quantum computer performed a calculation in 3.5 minutes that would have taken 10,000 years on a normal computer (so they claim: https://www.space.com/quantum-computer-milestone-supremacy....
2
votes
2answers
196 views

How can someone lose funds in Lightning Network?

In Bitcoin once you own a private key associated with an address that had bitcoins on it, your funds are theoretically safe for ever. But on the Lightning Network, I see that once you send bitcoin to ...
0
votes
1answer
39 views

How can I extract my bitcoin public address from my bitcoin private key using PHP for Nodejs?

I'm building out an application, but I need to verify if the bitcoin private keys have a positive balance. Is there a PHP script or some type of service that I can pass in a private key and outputs ...
0
votes
1answer
53 views

Is OP_RETURN dangerous for Bitcoin?

Please explain something about OP_RETURN to me? https://bitcointalk.org/index.php?topic=1166928.0 I saw a discussion that the contents of OP_RETURN can open the value of access to the private key. I ...
0
votes
1answer
45 views

Can two bitcoin transactions from a Segwit address (p2sh-p2wpkh) have a reused R value?

Good day. I'd found these two transactions: https://www.blockchain.com/es/btc/tx/2b08d658045724aba40b58690ad84ec2af1f01ab58df37387dadd2b27789f44c and https://www.blockchain.com/es/btc/tx/...
0
votes
1answer
119 views

Bitcoin i have been asked to send money for a private key [duplicate]

Hi i have been asked to send money for funds that are nonspendable to receive a private key to unlock it, it's from bitcoin investing. How safe is this as i'm worried i wont receive the payment. It's ...
0
votes
2answers
49 views

Who store seed phrases data

Seed phrases seem to be pretty secure, approximately as strong as bitcoin private key according to this site https://en.bitcoin.it/wiki/Seed_phrase. But who store the private key adresses of these ...
1
vote
1answer
54 views

What does a Bitcoin lightning private key look like?

I know bitcoin private keys start with a 5... But how does a lightning bitcoin private key look like? Say I wanted to printed it out as a paper wallet.
1
vote
0answers
194 views

Bitcoin Private Key Decryption

At present, I have dumped my wallet and have all private key, address information. I am now wanting to understand the decryption process for the private keys within the wallet. I have completed the ...
0
votes
0answers
21 views

At what step does the private key is transformed to mnemonic phrase [duplicate]

If I am correct to make a private key you have to first generate a random 256 bit number then transform it to a WIF private key using base 58 check encode, does the mnemonic phrase is generated from ...
0
votes
1answer
220 views

Bitcoin private key and address generator in golang

I am looking for a golang alternative to https://github.com/richardkiss/pycoin . So far I have found https://github.com/btcsuite/btcd but have not figured out how to generate private keys and ...
2
votes
1answer
64 views

What prevent a smartphone wallet from downloading my keys

Wallet software use variant technologies to protect and hide our private keys like mnemonic or simply using the private keys. What would prevent them from making a patch to their software that will ...
0
votes
1answer
86 views

Convert private key to integer

I have a random private key (compressed or uncompressed) 5HpHagT65TZzG1QDbnQCzdudnpknN7nA1SLEt4ZcxsH2SV92yqt or KwDiBf89QgGbjEmUcXPRwPuKPFnFECvJkvovGNiyjaujMCrQXy98. How do I convert this private key ...
0
votes
1answer
210 views

Convert EC PRIVATE KEY from .pem into WIF

I have a openssl generated private key in the following form: $ cat priv.pem -----BEGIN EC PARAMETERS----- BgUrgQQACg== -----END EC PARAMETERS----- -----BEGIN EC PRIVATE KEY----- ...
0
votes
0answers
24 views

Bitcoin Core Question, Initialization Vector

I am reviewing Bitcoin Core source code. I am following the code which states take a double sha 256 of the public key to get the IV and use the master key for the encryption key for encrypted wallet....
1
vote
1answer
185 views

How does BIP 39 mnemonic work?

As I already understood the mnemonics are the private key separated in 12 words which joined together in the very same order produces the private key. How are mnemonics generated? Why Ledger ...
0
votes
2answers
58 views

Recovering a Bitcoin Key Made From Rolling Dice

So a few years ago I created a private key by rolling dice. Following the instructions from bitaddress.org, I rolled a dice 99 times and entered the string into the bitaddress.org. Rather than ...
1
vote
1answer
69 views

Conditions for recovering a p2pkh bitcoin private key

Apart from Re-using same R value, What are the necessarily ecdsa values needed or method to recover the private key of a p2pkh address. When same address is reused numerous times to receive bitcoin ...
1
vote
0answers
36 views

how private key is stored? [closed]

How is the private key or master seed managed on iOS or Android? In copay, using Secure Enclave? And as for Android device how is the private key or master seed managed?
0
votes
1answer
108 views

Where is the AES-256 key/ IV pair stored in wallet.dat file?

I have created an encrypted bitcoin file. I know the password and I see the mkey in the hex dump. I would like to know where the AES key / IV pair are located in the wallet.dat file?
0
votes
1answer
85 views

Javascript library or code that can convert an “uncompressed” bitcoin private key to a compressed one

I forked a pretty old brain wallet generator: https://dvdbng.github.io/memwallet/ -- Currently it generates uncompressed bitcoin private keys. Is there a javascript library that can convert an ...
0
votes
0answers
57 views

Mycelium not reading segwit bech32 (bc1) addresses from a private key

I'm trying to import my bitcoin private key into the Mycelium android wallet, but it keeps showing up as the legacy address that starts with 1xxx. I sent some coins to the bc1 address and I verified ...
0
votes
1answer
56 views

Importing private key to bitcoin node is slow. Can it be faster?

I have launched the bitcoin node and synchronized it. The issue is that importing the private key forces the node to scan the blockchain for the operations with the key. Is there a way to import the ...
0
votes
1answer
50 views

Exporting private key from expired bitcoin address (now showing as watch-only)

Is there a way, in theory, to export private key from the bitcoin address (watch-only) that is now expired, but used once before? (even to get a different format of that key, numeric one instead of QR ...
0
votes
0answers
270 views

How can I technically find my private key for bitcoin wallet address (Blockchain) that has been used before?

So I really made a mistake by importing address without knowing I will be asked for a private key later since that address is watch-only. Seems like this address has already been used before on my ...
0
votes
2answers
156 views

What is the need for multiple private keys?

From what I understand, there is initially a seed from which the private keys are derieved and from that the public key respective to each private key is derived. The public key is essentially the ...