Questions tagged [public-key]

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
0 answers
20 views

Computing HASH160 of a Taproot X-only 32 byte Public Key

I know that Taproot does not use pubkey hashes, but I want to compute a HASH160 of a 32 byte Taproot X-only public key anyway. The rationale is to compare it to an existing 20 byte HASH160 from a ...
Alec Matusis's user avatar
1 vote
0 answers
18 views

Deriving bip84 addresses with python

Does anyone have a python script deriving the bip84 addresses from the private key? I do have the private root key so I don't need to go all the way from the private key. I'd like to do this with the ...
Peder Rustad's user avatar
-1 votes
1 answer
46 views

Bit coin core Settings/Receiving addresses

Under these settings in bitcoin core. does imported addresses (watch-only) appear under the settings as an official receiving address or it appears there because imported a wallet to watch.
Zeata Hazuki's user avatar
1 vote
1 answer
247 views

Two private keys whose corresponding public keys have the same x-value?

For a given integer m, there are at most two points in the secp256k1 curve whose x-value is m. Have we ever actually found a pair of distinct private keys whose corresponding public keys have the same ...
mathboi's user avatar
  • 183
-1 votes
1 answer
92 views

deriving the master public key and the btc address from seed phrase of electrum wallet

I am searching for an exact python code that can take a standard wallet seed as input and output the the root key or xpub master public key. I had tried several codes but none of them gave me the '...
he lo's user avatar
  • 3
0 votes
1 answer
47 views

How to set the output script of coinbase transaction

I found that the "getaddressinfo" command in RPC can get pubkey and scriptpubkey. My address pubkey scriptpubkey are: address='bcrt1q95h0le6kknpnjp4c29cau03gvdyxd35zug30yr' pubKey='...
Jack Green's user avatar
1 vote
0 answers
28 views

Given a Bitcoin wallet address, can its other addresses be inferred from it? [duplicate]

A bitcoin wallet doesn't have one single address, but several. All these addresses can be obtained from the master public key, am I wrong? Does knowing one of this addresses (not the master public key,...
Dan's user avatar
  • 191
2 votes
1 answer
103 views

What is the probability of accidentally getting a seed phrase that is associated with a real address with a balance in the bitcoin blockchain?

Good afternoon! Such a question is interesting, and with what probability can you accidentally get a seed phrase that is associated with a real address with a balance in the bitcoin blockchain?
Woody1134's user avatar
0 votes
1 answer
95 views

Do we need a taproot commit for multisignatures if there is no script path, but we are using the MuSig2 protocol?

I read in some article for Taproot that if there is no need for a script path spending and a number of participant (multisignature with key aggregation) create together a taproot output key (key for a ...
LeaBit's user avatar
  • 920
1 vote
1 answer
106 views

Is it possible to calculate the correct y coordinate from x coordinate given only x coordinate without any prefix

If I have a x coordinate without any prefix such as 03 or 02 fff97bd5755eeea420453a14355235d382f6472f8568a18b2f057a1460297556 will it be possible to compute the correct y coordinate that would be ...
Zetock's user avatar
  • 13
0 votes
1 answer
104 views

What does a digital signature scheme need to have in order to be used (indirectly) in Bitcoin?

Here (see the comments) Pieter Wuille described digital scheme as a collection of three algorithms: (key generation, signing, verification) Since Bitcoin uses ECDSA (pre-Taproot outputs) and Schnorr (...
LeaBit's user avatar
  • 920
-2 votes
1 answer
48 views

Feedback system possible

I grasp the concept of point negation and addition quite well. Point negation involves taking a public key, inverting it, and adding it to a target. The resulting difference between the target and the ...
Melwyn's user avatar
  • 1
2 votes
1 answer
61 views

How to find out if public keys have been used in other transactions

When we get the public keys from a multisig script is there a way to check what other transactions use those public keys? I know how to check if they have been used as P2PKH addresses, but I'm not ...
user2334659's user avatar
0 votes
1 answer
85 views

Public key factors - but what's next?

Let's say I found (I know, impossible) public key factors. What to do with them next to compute original private key for that public key?
pbies's user avatar
  • 149
0 votes
0 answers
76 views

Explain the use of inverse

I understand that from private key 1 to 57896044618658097711785492504343953926418782139537452191302581570759080747168 every public key is literal inverse of private key ...
Melwyn's user avatar
  • 1
0 votes
0 answers
36 views

Why is my manually calculated public key different than libsecp?

I'm teaching myself ECC using the secp256k1 curve. Ultimately I'm interested in learning about Schnorr signature aggregation and MuSig protocols, but I'm starting from the ground up. I've attempted to ...
ursuscamp's user avatar
0 votes
0 answers
21 views

Question About Xpub WRT jb55's Github Example

First of, thanks for jb55's wonderful tool for making dumping a c-lighting key easy. However, this is not the point of this post. What i am here to ask is if you look at his example here: ...
Jim Quick's user avatar
2 votes
2 answers
72 views

BTCPayServer - importing wallet using zpub

I'm trying to connect my BTCPay server to hardware walet by entering the public key. The HW wallet account is P2WPKH, the public key has a zpub… format. When I enter the key, server correctly ...
Gusep's user avatar
  • 31
0 votes
1 answer
100 views

What is the purpose of the different types of extended keys, as well as some of its other elements?

I have a few questions about the extended public/private key, i.e. the purpose of its elements. Namely, according to the BIP32 standard, the "format" of the extended key is as follows: [ ...
dassd's user avatar
  • 1,059
1 vote
3 answers
240 views

Do I need to store my hardware wallet's derivation path?

"Not your keys, not your coins" is common mantra. I thought all I needed to do was to safeguard my private keys (via hardware wallet, cold storage) to be able to reconstitute my BTC at any ...
Runeaway3's user avatar
  • 327
4 votes
1 answer
798 views

What does it mean that the security of Bitcoin public keys and 256-bit ECDSA is 128 bits?

I am reading the Master Bitcoin book and came across the following: From a security perspective, the amount of entropy actually used for the production of HD wallets is roughly 128 bits, which equals ...
dassd's user avatar
  • 1,059
-1 votes
1 answer
56 views

Is there any way to look deeper at a specific wallet address to see if it's associated with any other BTC balances

I recently switching mining pools and desktop wallet (Sparrow). In an effort to set the address I sent a small amount of BTC to an address thinking it was my own, in a newly set up Sparrow wallet. ...
Freedom Francis's user avatar
0 votes
1 answer
69 views

How three addresses from the same (un)compressed key works?

As far as I understand, if we have one private key, we're able to create 4+ matching addresses. I'll use famous int(1) as a private key for example here. Then we can create: P2PKH from the compressed ...
Putnik's user avatar
  • 63
1 vote
2 answers
194 views

Bitcoin keys explained?

I found a diagram, which explains in an excellent way how to convert a public key to a P2PKH address here(1). Also, I found a good map of types of addresses/keys here(2) and a list of all possible ...
Putnik's user avatar
  • 63
1 vote
0 answers
83 views

Recovered bitcoin public keys do not verify the signature

I need to recover public keys on the bitcoin chain for a project, my current flow is like this: Get hash + signature from bigquery -> Use nodeJS secp256k1 module (native bindings) to import ...
Ano's user avatar
  • 11
1 vote
1 answer
89 views

Can addresses be linked to "wallets"?

If I have my coins on address A, send it to address B from the same private key, is anyone able to say "these two addresses belong to the same wallet" with certainty? Because of the public ...
codepleb's user avatar
  • 189
-1 votes
1 answer
56 views

In bitcoin core can ScriptToUniv give us wallet address of public key?

a few days ago I created a PR https://github.com/bitcoin/bitcoin/pull/27546 where I proposed ScriptToUniv can give us wallet address of public key But some guy commented "Concept NACK Sorry, no. ...
saffi Khan's user avatar
3 votes
1 answer
230 views

What is the length of the extended public key?

I'm reading the Master Bitcoin book and I'm a bit confused. The confusion is related to the length of the extended keys. The book says that extended keys are 512 or 513 bits long. It is clear to me ...
dassd's user avatar
  • 1,059
1 vote
1 answer
104 views

Why listdescriptors yields different xpub keys for a brand new wallet in bitcoin core

I noticed that if I listdescriptors true immediately after creating a brand new wallet, it would list 8 descriptors that all use the same xprv key. However, listdescriptors false would list 8 xpub ...
Meglio's user avatar
  • 289
0 votes
1 answer
41 views

Are fees smaller to transact to addresses generated from a zpub master public keys compared to xpub?

Will it affect the fees in any way when one sends money to an address generated from zpub master public key compared the xpub? What might also be part of this question is, understanding whether it is ...
Meglio's user avatar
  • 289
2 votes
1 answer
339 views

Calculating addresses from Bitcoin transaction data

What would be the easiest way to retrieve addresses that are used in specific transaction? For instance, if you look at following transaction which is retrieved by getblock of JSON RPC with argument ...
xor's user avatar
  • 87
1 vote
1 answer
316 views

How to generate a bitcoin public key from an existing private key using openssl?

I want to generate bitcoin priv/pub key manually. I generated random binary numbers by flipping some coins and converted them to hex. Now,I got a bitcoin private key in hex:...
MonKong's user avatar
  • 53
6 votes
2 answers
989 views

Is a P2TR address a compressed public key?

From what I understand, a public key can be compressed from 64 bytes into 32 bytes, but an additional byte is needed for the sign, so it usually winds up being 33 bytes total. But P2TR addresses only ...
Hunter Beast's user avatar
0 votes
1 answer
462 views

How to check whether a hex string is a key or an address and how to import it?

So after long digging I finally found my private key which is in hex format. When I paste it in one website it does validate the address, it is a legacy address, it is in hex format, but it's 66 ...
Nikolai Tringov's user avatar
0 votes
1 answer
147 views

Bitcoin Core shows addresses that Electrum says don't belong to my wallet (imported MPK via EPS). What is going on?

I got a full node (pruned) up and running with Bitcoin Core via Tor. I installed Electrum Personal Server (EPS) and connected my hardware wallet with Electrum via Tor. I generated a watch-only wallet ...
Pimlam's user avatar
  • 1
-2 votes
1 answer
94 views

Potential new BIP Proposal?

I’ve been working on a project which will help manufacturers of physical products and NFT makers to distribute their NFTs in the real world. My solution is to box up a paper wallet loaded with the NFT....
Adriano Mancino's user avatar
1 vote
0 answers
307 views

Bitcoin script and unsecure ScriptPubKey

The following is taken from problem 3 in HW1 of CS 251 Stanford's course (https://cs251.stanford.edu/syllabus.html). Alice is on a backpacking trip and is worried about her devices containing private ...
Mattiatore's user avatar
1 vote
1 answer
397 views

replicating Hash160 with SHA256/RIPEMD160

I have a dumb question about Hash160 (specifically, going from a public key to Hash160). If I take a public key: ...
FKAjasmine's user avatar
1 vote
1 answer
136 views

How to add multihreading to a continuous SECP256K1 Python function?

I have an infinite loop Python function for measuring how fast are SECP256K1 public Keys are generated. The script: from time import time a = 0 b = 7 n = ...
Emma Lincoln's user avatar
2 votes
2 answers
77 views

What is the difference between a push-based transaction model and a pull-based transaction model?

What is a pull-based transaction model? What is a push-based transaction model? I've heard people describe bitcoin as a push-based transaction model. I've heard people describe traditional financial ...
Michael Altfield's user avatar
1 vote
0 answers
115 views

Uncompressed to compressed bitcoin public key with public address?

Is there a script in which i could convert multiple bitcoin uncompressed public keys to compressed and also get public address as well? I search the web with no luck. Thanks in advance!
lepy's user avatar
  • 45
-1 votes
2 answers
46 views

Why is it that some software crypto wallets are restricted to certain networks only?

My basic understanding so far is that crypto wallets are nothing more than a collection of the owner/user's public keys derived from the unique seed or mnemonic using different hashing algorithms. If ...
kenta_desu's user avatar
2 votes
1 answer
195 views

Were uncompressed public keys always supported by Bitcoin?

I was wondering when compressed public keys were introduced to bitcoin, then I saw this quote from this answer: The original Bitcoin software didn't use compressed keys only because their use was ...
Darius's user avatar
  • 789
1 vote
1 answer
138 views

The left-half 256 bits of the hash are added to the parent key to produce the child private key

So in mastering bitcoin it mentioned that to generate child key,The left-half 256 bits of the hash are added to the parent key so if we add that it will be 512 bits.But we need 256 bit so do we hash ...
Athul A's user avatar
  • 69
1 vote
1 answer
570 views

Is it true that Public keys with even y coordinate correspond to private key that are less than n/2 and vice versa? (Secp256k1)

The question is somewhat complex and directed to clearing thing out. Suppose that n is the order of the cyclic group. It n - 1 is the number of all private keys possible n = ...
Emma Lincoln's user avatar
1 vote
0 answers
44 views

Incorrectly counts the we have added a generator point to itself in a loop (SECP256K1, Python),

I have a script that converts a bitcoin private key into x and y coordinate with parameters of a Secp256k1 curve. Here's the script: a = 0 b = 7 #Order of the finite field prime = 2**256 - 2**32 - 977 ...
Emma Lincoln's user avatar
1 vote
1 answer
788 views

How to convert a compressed public key into uncompressed one in Python?

I've searched really hard for a Python script that coverts a compressed public key into uncompressed one, since I don't know how to code this. I stumbled upon these links: https://stackoverflow.com/...
Maltoon Yezi's user avatar
2 votes
1 answer
1k views

Why do compressed and uncompressed public keys have to produce different addresses?

I am reading through the "Mastering Bitcoin" book. I understand that in the beginning the public key was both the x and y on the elliptic curve. Then it was optimized to only contain the x, ...
Николай Караджов's user avatar
2 votes
1 answer
134 views

Fail at coding my private to public key converter (Pyhon)

Fail at coding my private to public key converter script for Bitcoin (Secp256k1) Currently going through the book "Programming Bitcoin by Jimmy Song", got stuck on page 61 (Chapter 3), but ...
Maltoon Yezi's user avatar
4 votes
2 answers
325 views

Is the G in Elliptic Curve same for Bitcoin and Ethereum?

Is the G of the elliptic curve the same for Bitcoin and Ethereum? If yes, then why can't we send bitcoin and ether to same public address? If no, then what's the reason behind implementing it like ...
Athul A's user avatar
  • 69

1
2 3 4 5
11