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

How to generate bitcoin private key and address in all formats and in sequence with python

I need help with my school project, I am new to python, but my project has to be done in python... I want a python code that will generate bitcoin private key and address in all formats and must be in ...
0
votes
1answer
23 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
30 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
48 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
65 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
26 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
388 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
48 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
63 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
51 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
124 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
23 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
50 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
22 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
76 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
43 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
96 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
69 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
72 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
66 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
73 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
159 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
77 views

Key Derivation - CKDprv & CKDpub

I would like to replicate this derivation of keys. Chain m ext pub: xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 ext prv: ...
2
votes
1answer
30 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
56 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
56 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
39 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
35 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
106 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
33 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
67 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
25 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
42 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
73 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
271 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
1k 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
86 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
73 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
32 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
93 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
79 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
208 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 ...
3
votes
4answers
1k 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
39 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
317 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
2 3 4 5
8