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
1answer
17 views

In compressed public keys, is the 2 or 3 the parity or the sign?

In different places I've read that the 2 or 3 is the sign or is the parity of the elided Y coordinate? Which of these is it, or are the sign and parity equivalent in some way?
1
vote
1answer
39 views

How to check if a given address belong to an exchange

Does any exchange provides any public information about its private keys managed BTC addresses, or is there any service that provides this information?
0
votes
0answers
17 views

How do I compute a private key, if I have two messages signed using the same nonce? [duplicate]

If I sign two messages with the same private key and nonce, it compromises security, making it possible to calculate the private key. I'm implementing a system (outside of bitcoin) where a message, ...
0
votes
1answer
29 views

How to get bitcoin bip32 public key from private key?

I need to know how to get the corresponding public key of a private key in hd-wallets, I don't need the derived ones but the public key who is related to the private I got. If there is an algorithm ...
0
votes
1answer
36 views

Why Bitcoin Core does not support importing extended public keys directly?

I'm trying to create a watch-only wallet importing the extended public key from a Ledger Nano (as an example) but is not to easy to do directly to my Node, I should do it through electrum personal ...
1
vote
2answers
75 views

Openssl magic values? Secp256k1 and ECDSA similarities? What makes secp256k1 special?

Part 1: Running this command seems to be a reliable way to produce a pubkey from a valid private key that for Bitcoin. Is this a correct assumption? openssl ec -inform DER -text -noout -in <(cat &...
1
vote
1answer
57 views

Can I know if a bitcoin private/public key or address was derived from another key in an HD wallet by its structure?

If I have a bitcoin private key, public key or address, can I know if it is a root private key or some other part which derived from a root private key in an HD wallet by the structure of it? To be ...
1
vote
1answer
48 views

Generate multiple public bitcoin receiving addresses (HD wallet) from seed phrase in nodejs

I want to generate a new receiving address for my bitcoin wallet for each new user. Bitcoin transferred to all these address should be received in my bitcoin wallet. I don't want to expose my private ...
0
votes
1answer
59 views

Import bitcoin address only with public key [closed]

I want to import a none spendable paper wallet. This was possible in the past. But now I am only allowed to import an adress with the private key. So this address won´t be none spendable. Was there an ...
1
vote
1answer
70 views

What is “signature recovery”?

Bolt #11 defines a "tagged field," n, which identifies the payee by a public key, but it isn't required. It also requires a signature which can be verified only if the public key is known. When ...
2
votes
2answers
108 views

convert private key to bitcoin address using python or php

I have private key like this 5JYJWrRd7sbqEzL9KR9dYTGrxyLqZEhPtnCtcvhC5t8ZvWgS9iC how to convert to bicoin address using python or php? example bitcoin address 18V7u8YNHKwG944TCkzYYj32hb6fdFPvQf
3
votes
1answer
64 views

Key Derivation - CKDprv & CKDpub

I would like to replicate this derivation of keys. Chain m ext pub: xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 ext prv: ...
2
votes
1answer
26 views

How to get access to funds on keys that were derived using public key child derivation? BIP 32

If I have a key m/0'/0' and I'm using CKDpub to derive m/0'/0'/0 and then CKDPub to get m/0'/0'/0/0. How do I get access to the funds on the addresses generated by CKDPub? Can m/0'/0' -> CKDPriv -> ...
0
votes
1answer
47 views

Tips for child key derivation

I am trying to make the child key derivation using the extended keys of the BIP32 document (https://en.bitcoin.it/wiki/BIP_0032). Assuming that an extended key is only a base58 encoded serialization ...
1
vote
1answer
40 views

Decodescript for a Testnet pubkey hash address

This is the address information: bitcoin-cli validateaddress n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW { "isvalid": true, "address": "n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW", "scriptPubKey": "...
0
votes
2answers
32 views

Why importing private key from one HD wallet to another doesn't restore the balance?

I've seen similar questions here but didn't find an answer I look for a private key in Exodus, for example, and import it to Jaxx and I don't see my balance correctly So my questions is, do all HD ...
9
votes
1answer
1k views

What are the potential attacks against ECDSA that would be possible if we used raw public keys as addresses?

According to this answer about why addresses are hashes rather than public keys there are potential attacks that are possible if you have the public key rather than the address, what are these attacks?...
1
vote
2answers
88 views

produce a public key from private key with ecc, with clear description about k=k*g

According to this answer: https://bitcoin.stackexchange.com/a/63996/100526 When he wants to generate a public key from the private key, he has used K=k*G. but I can't understand it's result. If we ...
1
vote
0answers
30 views

How can you generate a bitcoin Public Key from an existing Private Key using openssl?

I know that you can generate a new key pair with a command like. openssl ecparam -genkey -name secp256k1 And the resulting output will contain a new private key with the encoded public key. Is it ...
0
votes
1answer
55 views

getting public key from any raw transaction - what to take care of?

i need to retrieve public key of transaction sender. now i know there are 03 compressed pubkeys and 04 uncompressed ones. but how is this working with segwit and multisig addresses? can you please ...
1
vote
1answer
22 views

in PHP how to calculate full uncompressed public key from a short 02/03 pubkey?

in PHP how do i create the full public key from a compressed one? my test key is 026a04ab98d9e4774ad806e302dddeb63bea16b5cb5f223ee77478e861bb583eb3 and the uncompressed one is ...
0
votes
1answer
39 views

How can I perform key derivation from a 130 characters hex public key?

I'm working with a hardware wallet (Keycard) and I'm able to export a 130 characters hex public key of the path m/44'/0'/0'. Now, I need to perform account discovery, and in order to do it I first ...
2
votes
1answer
70 views

Positive or negative private key of a bitcoin wallet?

Private key is a number. Is the question positive or negative? Is it possible to know a positive private key or negative if you only know the public key? For instance: Positive private key: 2 ...
2
votes
3answers
225 views

How to subtract two points on an elliptic curve?

Please tell me if there is a formula for A-B, (That is, subtraction of two points / minus). I know how two points are added, A + B this addition is described in detail (Please tell me how you can ...
2
votes
2answers
956 views

What are the DER signature and SEC format

I often see those 2 elements in bitcoin documentations and tutorials but I have not yet find a proper definition on the internet for DER signature and SEC format.
0
votes
1answer
79 views

Use hdseedid to give all addresses in bitcoin

I'm using bitcoin core version 0.18.1 and I'm studying Hd Wallet. I can see the value hdseedid, and I understand that it's HASH160 of my hd seed. Can I use this seed to retrieve all my keys? I tried ...
0
votes
1answer
65 views

How long would it take for all the Bitcoin Key pairs to be calculated?

Is this even something one should be worried about?
0
votes
1answer
29 views

How Extracting address Bitcoin to script multi signature

I want to extract the correct address from a script multi-signature. I have this real script multi-signature from this ScriptSig (tx index 1), so this is a readme script for this address OP_2 ...
0
votes
1answer
87 views

Is it possible to add two secp256k1 points to get a “shared key”?

As I know from the Elliptic Curve Diffie Hellman (ECDH), you can create a "Shared Key": https://asecuritysite.com/encryption/ecdh2 This will look like this: dA × dB × G = Shared Key QB = dB × G QA ...
1
vote
0answers
38 views

How verify (in C++) input signature?

First small problem: blockchair.com give me only output scripts, not input - is any blockexplorer online with it? I read binary data and this may be hard recreate my sample data and verify. I test BTC ...
0
votes
1answer
44 views

How can I extract my bitcoin public address from my bitcoin private key using PHP for Nodejs?

I'm building out an application, but I need to verify if the bitcoin private keys have a positive balance. Is there a PHP script or some type of service that I can pass in a private key and outputs ...
22
votes
1answer
3k views

Why does hashing public keys not actually provide any quantum resistance?

In the discussions about taproot, it was mentioned that outputs will include the public key directly instead of hashing them. It is stated that, currently, hashing does not really provide quantum ...
0
votes
1answer
71 views

Is OP_RETURN dangerous for Bitcoin?

Please explain something about OP_RETURN to me? https://bitcointalk.org/index.php?topic=1166928.0 I saw a discussion that the contents of OP_RETURN can open the value of access to the private key. I ...
0
votes
1answer
152 views

Is there an equivalent to the Xpub/Zpub for multisig wallets?

When I have a typical wallet, I can give my Xpub to someone to generate addresses whenever they need. ("they" here could be an instance of BTCPAY server or some other application that I don't want to ...
0
votes
0answers
28 views

Bitcoin Core Question, Initialization Vector

I am reviewing Bitcoin Core source code. I am following the code which states take a double sha 256 of the public key to get the IV and use the master key for the encryption key for encrypted wallet....
0
votes
0answers
16 views

difference between extended public-key(xPub) and public-key [duplicate]

I wanted to know the differences between the public key and extended public key and their use cases.
3
votes
4answers
996 views

How does a wallet get the public key from an address?

I was under the impression that addresses are just an encoded, hashed public keys with a prefix and that only the public key is used on the blockchain (not the address) for transactions. But if the ...
0
votes
1answer
36 views

What is the relationship between the Digital Signature and the Public Key

So, I can see this is in the unlocking script: <Cafe Signature> <Cafe Public Key> Taken from mastering bitcoin. What is the difference between the two? I don`t find it easy to google.
2
votes
1answer
309 views

I tried to recover the public key from the signature, but I failed

I used data that comes from https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#p2sh-p2wpkh. It is easy to know how to get sigHash. But when I try to recover public key, everything out off ...
2
votes
0answers
22 views

What heirarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S?

What heirarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S? Does it ask for a different key each time or is it always the same key? If I connect to Google for ...
1
vote
0answers
50 views

Does Electrum reveal a wallets public key to Electrum Servers?

When Electrum Bitcoin wallet queries a random Electrum Server does it send the public key to the server or does it send a batch of addresses to check? For instance, after setting up Electrum Personal ...
0
votes
1answer
93 views

Creating a nothing-up-my-sleeve public key

I am trying to create a public key whose x starts with "34" and is followed by the minimum number n such that the concatenation of "34" and n is the x of a valid point (x, y) on the elliptic curve ...
1
vote
1answer
36 views

How is the PRIVATE KEY actually created in the first place?

How is the "Private Key" created in the first place? I understand that once you have your wallet, you will also gain access to your public key and private key... But in order to have a wallet ...
0
votes
1answer
34 views

How public-key cryptography secures bitcoin transactions from 51% attacks and Mining Attacks

I wanted to better understand how public-key cryptography avoids 51% attacks and mining attacks, also if this question is wrong please correct so that i can improve my research and provide me with ...
0
votes
0answers
24 views

What role does public-key cryptography play in bitcoin transaction? [duplicate]

Explain in one word and kindly tell what is it exactly that public-key cryptography does in bitcoin.
0
votes
1answer
68 views

Public Key VS Wallet Address - What is the difference?

I am seeing a lot of contradictory information on why we now use Wallet Addresses rather than Public Keys. Some say that due to additional level of hashing (double hashing), Wallet addresses are ...
0
votes
2answers
373 views

What is the need for multiple private keys?

From what I understand, there is initially a seed from which the private keys are derieved and from that the public key respective to each private key is derived. The public key is essentially the ...
1
vote
1answer
79 views

Why not every [x,y] coordinate on the Secp256k1 curve corresponds to a valid uncompressed publicKey?

First, some background. 1. There are some coordinates x,y satisfying y^2(mod p)=x^3+7(mod p) on the Secp256k1 curve that do not correspond to a valid Bitcoin uncompressed publicKey of the form 04[x,...
1
vote
1answer
68 views

Up to 4 Different Points within ECDSA/Public Key Recovery technique

In the answer to this question, it is stated that: Rearranging this equation you get rP = sR - mG, or P = (s/r)R - (m/r)G. Thus, it seems we can just compute the public key from the message and the ...
0
votes
1answer
318 views

Bitcoin Core `getaddressesbyaccount` method not found (-32601)

On macOS Mojave I have a full bitcoin node synced using bitcoind. I want to get the public address of the default account (i.e. the empty string ""). So I run bitcoin-cli getaddressesbyaccount "" ...

1
2 3 4 5
7