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
2 votes
1 answer
56 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?
user avatar
0 votes
1 answer
78 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
  • 478
1 vote
1 answer
67 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
99 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
  • 478
-2 votes
1 answer
47 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
49 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
67 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
  • 141
0 votes
0 answers
58 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
33 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
20 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
1 vote
1 answer
47 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
  • 11
0 votes
1 answer
71 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,029
1 vote
3 answers
135 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
  • 333
4 votes
1 answer
495 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,029
-1 votes
1 answer
37 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
50 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
171 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
59 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
83 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
  • 229
-1 votes
1 answer
50 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
2 votes
1 answer
176 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,029
1 vote
1 answer
74 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
  • 287
0 votes
1 answer
38 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
  • 287
2 votes
1 answer
224 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
214 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
855 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
249 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
115 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
93 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
0 votes
0 answers
51 views

NameError at /register name 'privtopub' is not defined

from django.shortcuts import render, redirect from django.contrib.auth.models import User, auth from django.contrib import messages from .models import Details from bitcoin import * import random ...
The Green Curtains's user avatar
1 vote
0 answers
264 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
278 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
125 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
68 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
99 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
44 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
193 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
  • 779
1 vote
1 answer
130 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
460 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
43 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
623 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
898 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
124 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
272 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 vote
1 answer
460 views

Generate Public Keys from Extended Public Key in python

I want to get a normal Public Key from an extended Public Key in Python. Actually I want to get the same result as here in the Extended Public Key Children section. I know I need this structure: ...
Julian's user avatar
  • 13
-1 votes
1 answer
60 views

suppose if I derived a public key from another algorithm instead of elliptical curve will the node reject my tx?

Or I changed the value of G in EC (K=k*G) what will happen
Athul A's user avatar
  • 69
2 votes
2 answers
345 views

Can I verify a child public key derived from its parent public key without involving any private keys and child index?

I have a extended private key, I'm creating multiple child private key / public key pair. If want to verify that the child public is derived from the parent public key. Can I do that? Thanks in ...
gokul656's user avatar
1 vote
1 answer
152 views

How the extended key in wallet is 512 bits?

For extended private key it is 512 bits but for extended public key how it is 512? It will be 264+256 right? And why in the book mastering bitcoin they said extended key is either 512 bits or 513 bits
Athul A's user avatar
  • 69
1 vote
1 answer
135 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: ...
Olivierrt's user avatar
0 votes
1 answer
69 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 ...
Jamo's user avatar
  • 157

1
2 3 4 5
11