Questions tagged [public-key]

This tag should be used for questions regarding public keys. A public key is the public half of the public/private keypair. Anyone can use a public key check that a signature is correct, but they can't generate the signature themselves with the public key.

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

How to verify an BlockChiain transaction using python?

Find all details from the link: https://www.blockchain.com/btc/tx/94ec7186e39fd9a2fda11d67fde158ba956dea421b23bb3cdefb2cc008ad1440
0
votes
1answer
41 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 ...
0
votes
1answer
41 views

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

Is this even something one should be worried about?
0
votes
1answer
18 views

How Extracting address Bitcoin to script multi signature

I want to extract the correct address from a script multi-signature. I have this real script multi-signature from this ScriptSig (tx index 1), so this is a readme script for this address OP_2 ...
0
votes
1answer
59 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 ...
1
vote
0answers
34 views

How verify (in C++) input signature?

First small problem: blockchair.com give me only output scripts, not input - is any blockexplorer online with it? I read binary data and this may be hard recreate my sample data and verify. I test BTC ...
0
votes
1answer
38 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 ...
20
votes
1answer
3k views

Why does hashing public keys not actually provide any quantum resistance?

In the discussions about taproot, it was mentioned that outputs will include the public key directly instead of hashing them. It is stated that, currently, hashing does not really provide quantum ...
0
votes
1answer
47 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
64 views

Is there an equivalent to the Xpub/Zpub for multisig wallets?

When I have a typical wallet, I can give my Xpub to someone to generate addresses whenever they need. ("they" here could be an instance of BTCPAY server or some other application that I don't want to ...
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....
0
votes
0answers
15 views

difference between extended public-key(xPub) and public-key [duplicate]

I wanted to know the differences between the public key and extended public key and their use cases.
1
vote
3answers
333 views

How does a wallet get the public key from an address?

I was under the impression that addresses are just an encoded, hashed public keys with a prefix and that only the public key is used on the blockchain (not the address) for transactions. But if the ...
0
votes
1answer
31 views

What is the relationship between the Digital Signature and the Public Key

So, I can see this is in the unlocking script: <Cafe Signature> <Cafe Public Key> Taken from mastering bitcoin. What is the difference between the two? I don`t find it easy to google.
2
votes
1answer
244 views

I tried to recover the public key from the signature, but I failed

I used data that comes from https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#p2sh-p2wpkh. It is easy to know how to get sigHash. But when I try to recover public key, everything out off ...
2
votes
0answers
20 views

What heirarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S?

What heirarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S? Does it ask for a different key each time or is it always the same key? If I connect to Google for ...
1
vote
0answers
37 views

Does Electrum reveal a wallets public key to Electrum Servers?

When Electrum Bitcoin wallet queries a random Electrum Server does it send the public key to the server or does it send a batch of addresses to check? For instance, after setting up Electrum Personal ...
0
votes
1answer
73 views

Creating a nothing-up-my-sleeve public key

I am trying to create a public key whose x starts with "34" and is followed by the minimum number n such that the concatenation of "34" and n is the x of a valid point (x, y) on the elliptic curve ...
1
vote
1answer
28 views

How is the PRIVATE KEY actually created in the first place?

How is the "Private Key" created in the first place? I understand that once you have your wallet, you will also gain access to your public key and private key... But in order to have a wallet ...
0
votes
1answer
34 views

How public-key cryptography secures bitcoin transactions from 51% attacks and Mining Attacks

I wanted to better understand how public-key cryptography avoids 51% attacks and mining attacks, also if this question is wrong please correct so that i can improve my research and provide me with ...
0
votes
0answers
24 views

What role does public-key cryptography play in bitcoin transaction? [duplicate]

Explain in one word and kindly tell what is it exactly that public-key cryptography does in bitcoin.
0
votes
1answer
57 views

Public Key VS Wallet Address - What is the difference?

I am seeing a lot of contradictory information on why we now use Wallet Addresses rather than Public Keys. Some say that due to additional level of hashing (double hashing), Wallet addresses are ...
0
votes
2answers
105 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 ...
1
vote
1answer
42 views

Why not every [x,y] coordinate on the Secp256k1 curve corresponds to a valid uncompressed publicKey?

First, some background. 1. There are some coordinates x,y satisfying y^2(mod p)=x^3+7(mod p) on the Secp256k1 curve that do not correspond to a valid Bitcoin uncompressed publicKey of the form 04[x,...
1
vote
1answer
45 views

Up to 4 Different Points within ECDSA/Public Key Recovery technique

In the answer to this question, it is stated that: Rearranging this equation you get rP = sR - mG, or P = (s/r)R - (m/r)G. Thus, it seems we can just compute the public key from the message and the ...
0
votes
1answer
151 views

Bitcoin Core `getaddressesbyaccount` method not found (-32601)

On macOS Mojave I have a full bitcoin node synced using bitcoind. I want to get the public address of the default account (i.e. the empty string ""). So I run bitcoin-cli getaddressesbyaccount "" ...
-1
votes
2answers
85 views

getting address from public of ScriptPubKey vs ScriptSig

Recently I read some articles about BITCOIN protocol and it's transaction. I understand(maybe it is incorrect) these rules: An input is what we call an output when you're spending it in a transaction....
1
vote
0answers
69 views

demonstrate tracking some bitcoin transactions with a program like an explorer

Recently I started to read BITCOIN protocol and it's events when a transaction created. I want to create a program a bitcoin explorer. as you know probably, Each non-coinbase input spends an outpoint ...
0
votes
1answer
27 views

Getting source address of a Tx message from it's signature script

I have a simple bitcoin packet which contains TX message. in a TX message, one of it's Transaction input hex data was like this: ...
0
votes
1answer
80 views

Detect types of ScriptSig and parse each part

As explained in https://en.bitcoin.it/wiki/Script there are many types of scriptPubKey and scriptSig like: <sig> <pubKey> <sig> <pubKey> <pubKey> <sig> <...
1
vote
0answers
43 views

Parse signature and public key from scriptsig in an input transaction of bitcoin protocol [duplicate]

I'm interested in bitcoin protocol and checking validation of a transaction. in a TX message, we can see one or more than one input transaction and every input transaction has a previous transaction ...
0
votes
0answers
55 views

secp256k1.publicKeyCreate generating symbollic key

Following is my code: const bip39 = require("bip39"); var HDKey = require('hdkey'); var bip32 = require("bip32"); var bitcoin = require('bitcore-lib'); var EthereumBip44 = require('ethereum-bip44'); ...
0
votes
1answer
34 views

Centos electrum public-key import

I have several bitcoin addresses (together with corresponding public keys) from Electrum wallet I've used previously. I moved to another CentOS server and now I need to import this addresses back. But ...
1
vote
2answers
59 views

Trying to understand extended keys

I'm slowly getting educated about how the blockchain and Bitcoin addresses work. I now understand why it is more secure to use a different Bitcoin address for every transaction you make but I'm now ...
0
votes
1answer
52 views

Bitcoin Public Key To Address Uncompressed

So after searching for HOURS on here and overall on the internet, I haven't managed to find an answer to my question so I'll ask here. So I've been trying to convert a public key into an address. I'...
1
vote
1answer
222 views

How can I import an address or public key into my wallet.dat file?

I have a wallet.dat with Bitcoin Address: 15iRTcgqBk1QNtr2gKkq2dUsm5nN25dSeN I want to delete this Bitcoin Address: 15iRTcgqBk1QNtr2gKkq2dUsm5nN25dSeN and add another Bitcoin Address How can I add ...
0
votes
0answers
30 views

Decode public key from address [duplicate]

The process of encoding a public key is very clear and explained here https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses I am looking for the other way around: how to get ...
0
votes
0answers
88 views

How can I generate public address from an xpub key in Java?

I have an xpub key with which I want to generate all addresses which have been used or will be used and then find out the keys which have balance. Here's a sample xpubkey with balance- ...
1
vote
1answer
149 views

How to uncompress a public key?

Simple question but I couldn’t find the answer anywhere. What’s the 65 bytes version of those public keys ? 0229b3e0919adc41a316aad4f41444d9bf3a9b639550f2aa735676ffff25ba3898 ...
0
votes
0answers
13 views

Public key vs Bitcoin address [duplicate]

As i've read on many websites and papers, the bitcoin address is made by hashing the public key. And i've read that that's done because we don't want the public key to be public until money is spent. ...
0
votes
1answer
39 views

Question about nondeterministic wallet

I was reading https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05.asciidoc#user-stories and ran into this statement. In the first bitcoin wallet (now called Bitcoin Core), wallets were ...
0
votes
1answer
130 views

Can someone explain what exactly is derived address?

Let's say my mnemonic words are army van defense carry jealous true garbage claim echo media make crunch When I used https://iancoleman.io/bip39/#english, the section, Derived Address, showed ...
1
vote
1answer
303 views

What can I do with Account Extended Private Key and Account Extended Public Key?

I have been reading about Account Extended Private Key and Account Extended Public Key that derives from the Master Private Key and Master Public Key, but I still have some question about their ...
0
votes
1answer
44 views

If transactions are changed in memory how miners know it?

If Alice requests something to bob, then Alice sends her public key and Bob encrypts message by using Alice's key. Bob uses his private key and hash function to make a signature. After finishing this ...
0
votes
1answer
78 views

Public key to address [closed]

I am working in js and I need a library that helps me get an address with a public key stored in a buffer.
0
votes
1answer
491 views

How to find one private key from the list of 15 million public keys for the sake of experimentation?

Recently found a list of compressed public keys. The total number of 15 000 000 public keys. Practical for all compressed public keys Balance: 0.000100 BTC I do not set malicious goals. All just for ...
0
votes
0answers
46 views

Extending a parent public key to create a child public key

I want to create public key from parent e public key like this: In this picture I can see left 256 bits and it's become 264 after "sum" with parent public key. But 256 bits what is it? When ...
1
vote
1answer
61 views

If Bitcoin addresses are a single-use token, how several transactions belong to a single address? (Edited)

While in Bitcoin wiki (Link to the page) is explicitly mentioned: "A Bitcoin address is a single-use token." We therefore expect that every address would be belonged to only a single transaction ...
0
votes
2answers
1k views

Get Master Private Key from BIP39 Seed

I have BIP39 Seed: 5b56c417303faa3fcba7e57400e120a0ca83ec5a4fc9ffba757fbe63fbd77a89a1a3be4c67196f57c39a88b76373733891bfaba16ed27a813ceed498804c0570 I want to get Master private Key Then I Have to ...
0
votes
1answer
72 views

Create master public key after HMAC-SHA512

I have that result after hash_pbkdf2 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570 left 256 bits are: ...