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
0
votes
0answers
5 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....
0
votes
1answer
20 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 ...
-9
votes
1answer
49 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 : ...
2
votes
2answers
29 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 -...
0
votes
1answer
49 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) ...
0
votes
2answers
59 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: "...
0
votes
1answer
28 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. ...
0
votes
1answer
79 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 ...
0
votes
1answer
56 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 ...
1
vote
1answer
40 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 ...
13
votes
3answers
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, ...
0
votes
0answers
29 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 ...
1
vote
1answer
73 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 ...
0
votes
0answers
18 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 ...
2
votes
1answer
59 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 ...
1
vote
2answers
48 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?
0
votes
3answers
99 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 ...
0
votes
1answer
52 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> ...
1
vote
0answers
78 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 ...
1
vote
2answers
46 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
59 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, ...
1
vote
1answer
139 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" ...
0
votes
1answer
47 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 ...
0
votes
2answers
140 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 ...
-2
votes
1answer
139 views

Private key (hex) from public key [duplicate]

Guys who know how to get private key (hex) if I know public key (hex) ?Thx for support
1
vote
0answers
58 views

Can I receive different cryptocurrencies on the same public key? [closed]

The main question I have is: Can I receive different cryptocurrencies on a same public key? For example: I instruct the person A to send me BTC on a public key X. I also instruct the person B to send ...
1
vote
1answer
80 views

How does a Wallet Create a Transaction when a Public Address Is Provided?

Given a public Bitcoin wallet address 1BdYVvwoxTWMGqJS2Pg6NkVD7RnENVjSac; is pasted into a wallet to send Bitcoins to. How does the wallet create an output to send coins to the public key associated ...
0
votes
2answers
209 views

As a developer, what steps do I need to take to generate private-public keys?

When developing (I'm using Apple Swift), what steps are needed in order to independently create my own pair of private-public keys (with the ability to restore a private key from a mnemonic phrase)? ...
0
votes
1answer
87 views

RIPEMD 160 Hashes

I have observed that BTC Address 1111111111111111111114oLvT2 has the public key RIPEMD 160 Hash is 0000000000000000000000000000000000000000 whereby 111111111111111111112BEH2ro has the public RIPEMD ...
0
votes
0answers
125 views

How do you Derive Addresses from a BIP49 Master Public Key using P2WPKH-P2SH?

I am trying to derive addresses from a master public key (aka extended public key) in python. I don't fully understand the math behind the key derivation, but have been able to decode the master ...
1
vote
2answers
102 views

Does every private key have two public keys (ie Y and negated Y?) (secp256k1)

given a private key Z that multiplied by the generator point G gives a public key P fulfills x^3 + 7 being a square, is it safe to say that either (x,y) is a valid point / pubkey, or (x, curve p - y) ...
0
votes
1answer
57 views

How can I get transction destination address from raw transaction data?

I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get transaction destination address (like in some transaction explorers: link....
2
votes
1answer
217 views

How can I generate expiring transactions?

I want to generate a transaction that spends funds to a wallet controlled by a third party, but for this transaction to only remain valid for a certain window of time. This could mean a transaction ...
0
votes
0answers
35 views

Nothing-Up-My-Sleeve BTC Addresses [duplicate]

I've been researching some crypto related concepts and came across "Nothing-Up-My-Sleeve Numbers" and from what I understand I can generated a Bitcoin address that basically comes with an ...
0
votes
1answer
43 views

What are the ways to obtain public key of a wallet with no outputs

I was wondering if there is a way to obtain public key of a public address where the address does not have any output transaction
0
votes
0answers
20 views

Why can't bitcoin be stolen in the following manner? [duplicate]

Assume I'm a miner. I would have the complete UTXO set with me. Let us say I try generating random keys and hash the public keys generated and compare it with the utxo set until I find a match. When I ...
1
vote
1answer
97 views

Y coordinate of PubKey on elliptic curve prefix

Public keys in the form of 04[x,y] can be compressed since the x axis is symmetrical. Hence we only need the x-coordinate with the 02/03 prefix which states if Y is odd or even. I don't understand the ...
1
vote
1answer
105 views

Are a new set of keys created for each UTXO, or can multiple UTXOs be locked by the same PubKey?

I understand that each transaction, new pairs of keys are generated, usually derived from a master key say in an HD wallet. If your change for a transaction or received BTC Is in multiple UTXOs, are ...
0
votes
0answers
24 views

How to sync AirGap Vault with its Wallet

How long does it take to sync AirGap Vault/Wallet together and does the syncing process require internet? And is it possible to sync Airgap Vault with electrum wallet?
1
vote
1answer
39 views

Why these 2 pubkeys start equal?

I generated a seed into my coldcard, wrote down its pubkey: xpubABCDEFGHIKL--------------------------------------------------- then I erased everything and generated a new seed, and wrote down its ...
1
vote
1answer
70 views

Is it possible to find additional key pairs resulting in the same address that I already control?

I'm not really well versed in the necessary terminology to get the answer I need from searching. As I understand, there are 2^160 possible addresses, and 2^256 possible private keys, so each address ...
0
votes
2answers
228 views

What is extended master key fingerprint on coldcard?

On coldcard on Advanced -> View Identity, there's extended master key fingerprint I though this was the xpub from my seed, but even after I changed seeds, it remained the same. What is it?
0
votes
1answer
119 views

Can you get the seed phrase of a HD wallet from the private key of one of the wallets?

Let us say I have a HD wallet. Can I get it’s seed phrase from the private key of one of its wallets? Also are seed phrases just easy to remember private keys? If so does that mean that from the seed ...
-1
votes
1answer
67 views

Orderly Transition Away from ECC? Or Bitcoin to zero?

Let's say asymmetric public key cryptography is wide open, and can be broken using a public key or the signature. Namely, that I can determine the private key using the information revealed in a ...
1
vote
1answer
92 views

How do you generate a Bitcoin wallet by hand?

I am interested in the exact process for generating the various components of a Bitcoin wallet by hand. Specifically, the components I'm interested in are: Private Key Public Key Public Key Hash ...
0
votes
0answers
96 views

public key from private key math

Please guide me if following is the actual math to drive public key from a private key then how would this apply to generate public key from private key 1 please guide me step by step Private keys and ...
0
votes
1answer
176 views

I bought bitcoin years ago and now the website that I bought from is unavailable!

I bought bitcoin years ago and now the website that I bought from is unavailable! I only have a key that I don't even know whether it's a public key or a private key or some useless key generated by ...
0
votes
0answers
94 views

Safe way to create a mnemonic and address in golang

I have been looking over internet in the different repos of btcsuite but had no luck in finding a way to generate a 12 word mnemonic and convert this to an address using the go language. It needs also ...
0
votes
1answer
43 views

How do I restore the public key?

Let say, I create wallet and have two public key and one private key. And I remove the first public key from the wallet. Can I restore and use my first key again? Or it's removed at all. Sorry for the ...

1
2 3 4 5
9