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 vote
1 answer
40 views

Why this witness doesn't seems to contain a public key?

I am learning how transactions are coded in the blockchain, so I used a python script to compute bitcoin address from public key. This works with the public key: ...
user avatar
0 votes
1 answer
31 views

How does the bitcoin network use public and private keys when one wants to transfer funds?

I am familiar with Public keys, private keys and addresses. But, I don't understand how they are used when I want to transfer funds to a different wallet. For example, what is the process that is ...
user avatar
  • 113
2 votes
2 answers
75 views

Why can't I reverse secp256k1's public key point in order to determine the private key?

I understand that the public key q is generated by the point addition of g (some secp256 k1 constant) u times such that u is a big number (private key). This process can be simplified in this diagram ...
user avatar
  • 113
2 votes
1 answer
35 views

How does ECDSA work when generating the public key?

I know the curve has formula y^{2}=x^{3}+ax+b. However, some websites are saying that a=0 and b=7 for secp256k1? What is secp256k1? Is it the curve that is always used or does it generate the field in ...
user avatar
  • 113
1 vote
1 answer
20 views

Import Bitcoin core pubkey into Electrum for multisig setup

Background I have a service running on a server using bitcoin core that is signing transactions from a Bitcoin wallet automatically. However, if anyone were to get access to this server, they'd have ...
user avatar
1 vote
1 answer
61 views

Baffled by endianness: How do I compute the HASH160 of the public key of a base58 address?

Given an address as follows: > spend_address=$(btc-cli getnewaddress '' legacy) > btc-cli getaddressinfo $spend_address spend_address info { "address": "...
user avatar
  • 211
1 vote
1 answer
59 views

GPG Suite cannot find Thomas Voegtlin's public key for Electrum

I'm trying to reinstall Electrum but cannot find Thomas Voegtlin's public key using GPG Suite, so cannot verify the downloaded Electrum software. Do I just need to keep trying or is there an ...
user avatar
  • 33
1 vote
1 answer
54 views

Why is the Generator Point G for secp256k1 curve typically indicated in (y,-x) quadrant?

Generator Point G for the secp256k1 curve is typically indicated below where the curve intersects the y-axis. At x=0, y=sqrt(7) and -sqrt(7), which are both small numbers less than 3, but G is an ...
user avatar
  • 33
1 vote
1 answer
63 views

Is it feasible to calculate EC private key k from public key K for very low values of k?

If an EC private key k is very small, say "1", is it feasible to calculate the private key k from its public key K, since there would only be one step back to generator point G and therefore ...
user avatar
  • 33
1 vote
0 answers
31 views

WitnessPubKeyHash to address

I'm trying to derive address from pubkeyhash in GoLang. Current i'm getting invalid address Current i'm getting SegWit address but mine chain doesn't support Segwit. addr, err := btcutil....
user avatar
2 votes
1 answer
63 views

How to calculate the public key, compute point P and create signature using ECDSA?

I'm quite new to the intricacies of bitcoin cryptography and ECDSA and elliptic curve cryptography has me quite stymied. I am faced with a curve with the equation: y^2 = x^3 + 7 of order N=39 with ...
user avatar
0 votes
2 answers
59 views

What is the difference between a 'hot' and 'cold' wallet

Problem I don't understand the difference between a 'hot' crypto wallet, and a 'cold' crypto wallet. Assumptions My understanding of blockchains is that they use public/private cryptography in order ...
user avatar
1 vote
1 answer
79 views

How to get Private Keys for the corresponding HD generated Child Public Keys?

If we take a look at the Mastering Bitcoin book by Antonopoulos it is explained how to derive child keys as described in BIP-32: From this image it is easily visible that we can use parent public key ...
user avatar
  • 15
0 votes
0 answers
24 views

PHP Blockcypher error validating generated transaction: Error running script for input 0

Attempting to use Blockcypher's /txs/send endpoint using detailed here: https://www.blockcypher.com/dev/bitcoin/#creating-transactions and I'm getting the following error: Error validating generated ...
user avatar
0 votes
2 answers
48 views

How can I manually connect a bitcoin network and create a bitcoin account?

I am not sure that I'm 100% technically correct, but I want to create a key value pair which is essentially my Bitcoin account. Please correct me if I am wrong. So what does it take me to make my ...
user avatar
1 vote
0 answers
33 views

How to calculate modulo (%) of bitcoin publick key?

Good day. How to calculate modulo (%) of bitcoin publick key ? Absolutely any methods are welcome, please. Br
user avatar
0 votes
1 answer
78 views

Bitaddress.org gives me legacy address instead of Bech32 address

I have my private key, but when I put it into bitaddress.org, it gives me a legacy address (starting with "1") and not the Bech32 address (starting with "bc1") that I was expecting....
user avatar
0 votes
1 answer
112 views

Addresses in Electrum wallet start bc1 but other tool gives addresses starting 1

I am using the Electrum wallet for Bitcoin on Windows 10. I'm able to get the private key of my main receiving address. I'm sure this address works to receive BTC as I've been able to before. I was ...
user avatar
1 vote
1 answer
43 views

What will be the security risks if we persist "e" as part of schnorr signature=(r,s,e) and extract publicKey from signature at verification

We know unlike ecrecover, it is impossible to get to public key given schnorr signature = (r,s) since rG = sG-eP . So, would like to understand what are the security risks, if we say signature=F(r,s,e)...
user avatar
0 votes
1 answer
39 views

Keypath spending: Verify destination address across address formats

In a Tapscript Keypath Transaction (there is an unrelated Scriptpath too) I can have outputs to all possible address? (I.e. to P2PKH, P2SH, P2WPKH / P2WSH and P2TR) I have a list of addresses in all ...
user avatar
  • 133
0 votes
1 answer
51 views

Using EQUALVERIFY with different public keys, but generated from the same seed

I am building certain system that involves Bitcoin and therefore I need to understand well how it works under the hood. In order to receive funds, for every new transaction new public key and its hash ...
user avatar
  • 15
1 vote
1 answer
95 views

How to generate a public key in wallet rpc commands

I'm trying to generate a public key associated with a wallet. How would I do this using the wallet rpc commands, I couldn't find a command in reference docs which does this. Thanks.
user avatar
  • 121
0 votes
1 answer
49 views

What happens to the public and private keys after a transaction? Specifically, how (and why) do they change upon payment?

Feel free to answer/address as many of these topics as you like: In particular, I am interested in how bitcoins can be stolen, e.g., the 2016 Bitfinex hack. If I am not mistaken, the only way to steal ...
user avatar
  • 3
0 votes
2 answers
100 views

Is it possible to have multiple receiving addresses (bc1q) related to the same public key hash

I am trying to get the big picture of the bitcoin entities starting from seed to btc receiving addresses in Hierarchical deterministic wallets without being too technical about hash functions or too ...
user avatar
  • 17
0 votes
1 answer
31 views

Where is the revelead public key in a spending transaction?

I am pursuing a deeper understanding of Bitcoin. Reading Grokking Bitcoin now. I am trying to asess the understanding of different concepts by exploring a BTC RPC explorer. I got some understanding ...
user avatar
  • 17
0 votes
2 answers
46 views

Does a pass phrase uniquely identify public and private keys?

If I go to bitaddress.org and create a paper wallet with BIP38 and a pass phrase, what it doing with that pass phrase specifically? Since it can make multiple paper wallets from one pass phrase, the ...
user avatar
  • 103
0 votes
1 answer
80 views

One address 2+ private keys. Bitcoin future

Since bitcoin uses cryptography algorithms to create private and public keys there is a possibility it could repeat. Person 1: L54w...KraG -> bc1...kq4 Person 2: L3mV...JU8G -> bc1...kq4 So ...
user avatar
1 vote
1 answer
59 views

How many times and where exactly is ECDSA used in Bitcoin?

I'm currently a little confused about where exactly ECDSA is used in the transaction process... some resources seem to say it's used once, whereas others seem to say it's used three times. Which is ...
user avatar
  • 13
0 votes
1 answer
59 views

How much can be stripped of a base58 address in a recoverable way?

Since P2PKH and P2SH addresses use Base58Check_encoding, the 4 byte checksum appended in binary contains some redundancy. Strictly mathematically speaking, those 4 bytes correspond to ca. floor(log(2^...
user avatar
0 votes
1 answer
43 views

Creating HD wallet using Blockcypher

I'm using Blockcypher to create an HD wallet, which requires me to send extended_public_key. How do I create the extended keys? While generating a new address using the API I'm getting something like: ...
user avatar
  • 127
0 votes
0 answers
28 views

Libbitcoin - Failing to generate correct wallet addresses from ypub and zpub

I am playing with Libbitcoin and I want to calculate addresses from xpub, ypub and zpub. Whatever I do though I cannot generate correct addresses from ypub or zpub. I don't have problems with xpub. ...
user avatar
  • 27
0 votes
1 answer
61 views

Getting "Public key is neither compressed or uncompressed" error when pushing a transaction, but everything looks fine to me

I am very new to Bitcoin development and trying to make some personal milestones, one of which is broadcasting a transaction to the testnet. However, I am having a hard time due to the following error....
user avatar
0 votes
1 answer
45 views

How Bitcoin browsers update balance of an address?

Suppose i have a Bitcoin address for the first time and Alice sends me 1 Bitcoin using P2SH. As far as I know, Bitcoin browsers will scan the entire blockchain. In this case, my public key is not ...
user avatar
-10 votes
1 answer
166 views

Can I be rewarded for discovering, creating, and proving bugs on Bitcoin?

There has never been a remittance history to this address. https://www.blockchain.com/btc/address/1JqPFnGPhHhy54zJKmC1MPiczzgFjCmzE9 public key : ...
user avatar
3 votes
2 answers
165 views

How to Compress Public Key with OpenSSL / Bash

I generate the private and the public keys in Shell like that: openssl ecparam -name secp256k1 -rand /dev/random -genkey -noout -out private-key.pem openssl ec -in private-key.pem -outform DER | tail -...
user avatar
1 vote
1 answer
100 views

Regex for validating xpubs

I am wondering if someone can help me with regex for validating all types xpubs like: xpub (mainnet P2PKH or P2SH) ypub (mainnet P2WPKH in P2SH) Ypub (mainnet P2WSH in P2SH) zpub (mainnet P2WPKH) ...
user avatar
  • 27
0 votes
2 answers
146 views

How to convert script_pub_key of type pubkey to public_key

This is a recurring question (see Parse the output field of getrawtransaction to generate a common address hash ), but I have a different spin. Consider the following scriptPubKey field: "...
user avatar
  • 107
0 votes
1 answer
67 views

Parse the output field of getrawtransaction to generate a common address hash

Consider the following coinbase transaction: https://www.blockchain.com/btc/tx/d70ae1131d433b655d0faeae1db4efa15bb4138f1e38e60a53073a58ea1dcc34 How we can retrieve the recipient address, i.e. ...
user avatar
  • 107
1 vote
1 answer
584 views

How to generate private/public key pairs in c++ using openssl

I have 2 questions: How can I generate private/public key pairs with c++ and openssl? I don't want them saved to a file. I want the values to be available to my c++ program. Given a private key, how ...
user avatar
0 votes
1 answer
90 views

Parsing bitcoin output script to pull address from genesis block

I already looked at the similar question - link and Genesis block but I have a different problem. I am parsing transaction 39ed112558fd501424e3b33bbcbf853ef9f24536ef0f8e6fbad2f5c5098173ad which has ...
user avatar
  • 29
1 vote
1 answer
55 views

Can I always set the first byte to 0x02 with the following implementation?

I've followed this tutorial on generating a Public Private key pair value and generating a valid Bitcoin address. But one part makes me wonder if the implementation is done correctly which is the ...
user avatar
15 votes
3 answers
4k views

Why is it not possible to get the private key out of the public key?

From how I understand it, the equation for the public key is defined as so: K = k * G With K being the public key, k the private key and G the generator point. Is G a constant? (as far as I read, ...
user avatar
0 votes
0 answers
59 views

My Public Key on MultiBit Classic is 34 digits long

My public key, as it's displayed in MultiBit Classic, has remained unchanged in the last eight years since I bought my bitcoin in Jan 2014. I'm now looking to move my bitcoins from MultiBit Classic ...
user avatar
1 vote
1 answer
84 views

Block 9 Transaction 1 Output 0 ScriptPubKey openssl validation fails

I'm trying to check the public key which lies in the ScriptPubKey of output #0 of transaction #1 bloc #9 with openssl. I'm using Python to create a DER file, and openssl to check it. ScriptPubKey ...
user avatar
0 votes
0 answers
20 views

What time of encryption from late 2000s contains house, smileyface, squares, letters and numbers?

Have a encrypted password or key typed to paper, i vaguely remember doing it, not sure if note pad was involved or some site , i remeber something about sha-2 , and sha- 256, and why i should use one ...
user avatar
2 votes
1 answer
92 views

Will taproot change public key generation?

Does taproot change how private/public keys/addresses are generated, or just how the transactions are signed? Also, I'd appreciate if someone could recommend me where to look for official sources of ...
user avatar
1 vote
2 answers
63 views

If I have a public wallet address can I calculate its other wallet addresses?

Lets say someone else generates 100 bitcoin addresses using the same private key. If know one of the public addresses, can I deduce the other 99 public addresses?
user avatar
  • 133
0 votes
3 answers
115 views

bitcoin private key usage

My next question is how Private Key needed to spend coins. According to my understanding for transaction needed below steps: A wants to send 10 coin to B A make transaction example: from: A, to :B ...
user avatar
  • 101
0 votes
1 answer
65 views

Why does the locking script for MultSig contain PubKeys instead of PubKeyHash?

I am reading "Mastering Bitcoin" by Andreas Antonopoulos. In the transactions section, the locking script for normal account(single address) is OP_DUP OP_HASH160 <Cafe Public Key Hash> ...
user avatar
1 vote
0 answers
91 views

Elliptic Curve Point Addition Question

I am doing a school project about Bitcoin and more specifically point addition on the Elliptic Curve. I am very new to all this so please forgive my mistakes. I have been reading that when adding ...
user avatar
  • 11

1
2 3 4 5
10