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
20 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
  • 23
1 vote
1 answer
40 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
  • 23
1 vote
0 answers
28 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
38 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
0 answers
36 views

Bitgcoin public key list?

Is there another way then form bitcoin core, to get all known bitcoin public keys? Like any api call form any bitcoin explorer or any existing online list,...? Thanks!
user avatar
  • 27
0 votes
2 answers
45 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
0 votes
1 answer
48 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
0 votes
0 answers
15 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
45 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
32 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
62 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
72 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
42 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
36 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
48 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
1 vote
1 answer
74 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
48 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
85 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
29 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
43 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
79 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
55 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
52 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
37 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
27 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
  • 25
0 votes
1 answer
56 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
-9 votes
1 answer
133 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
121 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
81 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
  • 25
0 votes
2 answers
108 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
54 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
449 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
81 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
  • 27
1 vote
1 answer
53 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
14 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
55 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
81 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
81 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
58 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
  • 131
0 votes
3 answers
112 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
63 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
87 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 vote
2 answers
97 views

What if I change PubKeyHash in scriptPubKey of a transaction to my PubKeyHash?

Suppose a person A makes a transaction to person B and sends it to bitcoin network. Suppose I changed PubKeyHash in scriptPubKey of a transaction to my PubKeyHash and send it to bitcoin network. The ...
user avatar
0 votes
1 answer
44 views

What is the relativity between ECDSA public keys, if any?

Wondering if there is any relative connection between public keys? I know that they are a function of G, but is there any other connection they share? Is it possible to calculate how many G are ...
user avatar
  • 1
0 votes
1 answer
75 views

is bitcoin keyspace flawed?

guys need your expert guide I was doing a research on Bitcoin key space and i have found a mysterious thing that the first public which is actually the generator point is same as the last public key, ...
user avatar
1 vote
1 answer
149 views

Why MakeNewKey in key.cpp isn't called when getnewaddress or generate

Hi I'm student studying bitcoin-core. I tested bitcoin regtest mode, and I want to know when CKey::MakeNewKey() is called. when I do this, bitcoin-cli -regtest createwallet "wallet1" ...
user avatar
  • 17
0 votes
1 answer
61 views

Can you use un-tweaked public key with P2TR?

Given some public key, is turning it into a working P2TR address and then going back from P2TR to get the same pubkey possible? I've read about the tweaking but don't really get it - do you need to ...
user avatar
  • 35
0 votes
2 answers
152 views

Signature doesn't prove that the owner of a Private Key produced a given message

Let's assume I am a developer of Bitcoin wallet. If I create a private key without implementing a seed phrase methodology (not using the principles of BIP32 and BIP39), is there at least the slightest ...
user avatar

1
2 3 4 5
10