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
4answers
93 views

Is it possible to know if the result of 2 point subtraction is before or after G

I am trying to see if there is a way to see if subtraction of 2 points on the elliptical curve resulted in a point before or after G?. Let me explain what I mean by it. Let's take a point GP. Using ...
1
vote
1answer
52 views

Why storing bitcoin in paper wallet is complex for me? [closed]

I created a paper Bitcoin wallet by using https://www.bitaddress.org. So, I have the private key and public key. I want to buy some bitcoin with my credit card and send it to my paper wallet by using ...
0
votes
1answer
41 views

Retrieving an addresses' public key from Pkscript/sigscript/witness

Let's use this transaction as an example. In the transcation, address 3GGoy8NoCF62TCAPGidWMU3u1ZrgwmasFt has a pkscript, a sigscript and a witness. It is possible to use any one of these, or some ...
0
votes
0answers
16 views

Need help with xpub bib32/bib44

I might just have had a major screw up. I created a bitcoin wallet with Electrum (bip32 standard). I then used the xpub key (extended public key) to generate payment addresses in my online store. It ...
0
votes
1answer
50 views

How can be proven that a signature is valid with it's public key

If someone wants to make a transaction, they need to sign the transaction data with their private key. For example Sign(transactionData, privateKey) creates the signature. What is exactly this Sign ...
1
vote
1answer
69 views

How did they generate these vanity addresses with 27 predetermined characters?

A while ago, I read some news about a huge transaction on the Bitcoin blockchain. The first few addresses used were apparently created with some kind of vanity address generator. One example is ...
0
votes
2answers
70 views

How to change the field of the elliptic curve to the new value N while keeping the default Secp256k1 parameters?

I want to change the margin of the elliptic curve to the new N value, while doing so I want to keep the parameters Standard G-point Generator Secp256k1 that is, I want to replace: N = ...
1
vote
1answer
84 views

Is there any available way to discover/find the public key of a specific address?

Is there any way to discover/ find out the public key of a specific bitcoin address? If not, are there any available tools online to help find the public key of a specific bitcoin address?
0
votes
1answer
44 views

Is the `addmultisignature` API call dependent on order of public keys in the array? Or is it lexicographically sorted?

Say Alice and Bob are part of a partnership business that accepts Bitcoin. They store all their main funds in cold storage until the end of 3 months, when they cash out and use a new address. This ...
0
votes
2answers
40 views

Public key management

There is something i am not sure to understand on bitcoin private/public keys and addresses. A new bitcoin user "U" first generates a private key. He can compute several public keys from ...
0
votes
1answer
155 views

How to generate Hash160 from a private key with the Bitcoin module

I want to fix the script code. The script generates from a random private key Bitcoin Address by function (pubtoaddr) and works on the Bitcoin module: https://github.com/primal100/pybitcointools/blob/...
0
votes
1answer
109 views

ECDSA public key to private key hex

I have an ecdsa public key how to get the private key of this public key; 0222d2deda24c03b2cc2b458c35780c62b6b5603c088709f17607b7ecf1399e4d7 how to solve this on python I am using Pydroid 3 on my ...
0
votes
1answer
30 views

What can be bitcoin's secret can be at most and at least?

We know that: S(Secret-Scalar) x G(Generater Point-Point(X,Y)) = Public Key In bitcoin, what is the range of that secret can be? What can it be at most and at least? Is there a limit to it like 2^256? ...
1
vote
2answers
463 views

How can a user or wallet have multiple addresses at all if out of a private key can be generated only a single public key?

A user of a wallet, regardelss of a version of a wallet, can generate as many addresses as he wants, right? Since an address is basically a public key, and in "private-public key" ...
0
votes
2answers
59 views

library for validating bitcoin private and public keys

I am building a python script that gets a string and determines if it is a valid bitcoin private key or public key, and if so it returns its type/format (base58, BIP32, HexaDecimal etc.) and its ...
0
votes
1answer
70 views

How to check if one transactions is from the same wallet (public key) as a previous one

I wonder how to figure out whether one Bitcoin transaction is from the same wallet (public key) as any previous transaction in order to proof the ownership of a wallet.
0
votes
2answers
77 views

Explain how unused addresses in wallet.dat have no balance when mining occurred for many months

I have a wallet.dat file with many zero transaction/(unused) addresses in it with keys assigned to each address. I’ve done research and there’s quite a bit of info about mining back in the day (2013-...
-1
votes
1answer
303 views

i find r s z from tow transaction but the r value is not same

i need your help plase i find r s z from tow transaction but the r value is not same from this wallet 1XCPdWb6kk7PGfvbdRbRuNh51aPc4vqC7 this is information tx 1 ...
0
votes
1answer
35 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
71 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
31 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, ...
2
votes
1answer
124 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
54 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
147 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
80 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 ...
2
votes
1answer
193 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
70 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
84 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
353 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
93 views

Key Derivation - CKDprv & CKDpub

I would like to replicate this derivation of keys. Chain m ext pub: xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 ext prv: ...
3
votes
1answer
32 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 -> ...
1
vote
1answer
67 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
94 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
55 views

Generating Bitcoin address from private key in browser console

I am a newbie Bitcoin evangelist and I have a recommendation to see all the code responsible for computing yourPublicKey from yourPrivateKey, especially for big deal addresses. The easiest way to ...
0
votes
2answers
49 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 ...
10
votes
1answer
2k 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
178 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
44 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
122 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
41 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
49 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
90 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
360 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 ...
4
votes
2answers
2k 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
104 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
80 views

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

Is this even something one should be worried about?
0
votes
1answer
33 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
106 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 ...
2
votes
0answers
44 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
52 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 ...

1
2 3 4 5
8