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
2
votes
1answer
922 views

How to track bitcoin wallet activity with extended public key?

I recently signed up on blockchain.info and on the manage addresses section I can see my wallet Extended Public Key (xPub). There is a warning message saying: You should only give this Extended ...
1
vote
2answers
160 views

Bitcoin adress security questions

I am trying to understand Bitcoin addresses, but it does not seem to be easy at all. As far as I know, a transaction uses one or more addresses as input and one or more addresses as output. Is this ...
6
votes
2answers
16k views

Does the private key of Bitcoin change everytime the address changes?

I have read from many sites that an address should change every time a Bitcoin transaction is made. Does the private key change along with the Bitcoin address. How is the address obtained from the ...
6
votes
2answers
887 views

Why can't we switch private and public keys?

If private and public keys are performing the same task (although asymmetrically), but I mean each one can encrypt something that only the other one can decrypt, can I create a paper wallet and share ...
9
votes
2answers
37k views

How do I get my public address in Bitcoin Core?

In a world of pain at the moment. I downloaded Bitcoin Core, and before I realised I'd need the complete downloaded Blockchain, my friend transferred some coins to my address. I did some research ...
0
votes
2answers
597 views

Multiple public keys - Total received funds

If I create a new public key (Bitcoin Address) for every transaction I'm receiving, is there some way to find my total balances of my wallet/private key? And are there any downsides with creating ...
5
votes
2answers
6k views

How to generate Ed25519 public key from private key using libsodium?

Not all crypto currencies are using secp256k1 technology for keypair generation and digital signatures. Curve25519 technology (frequently used to support ECDH key exchanges) is being used by a few ...
1
vote
1answer
150 views

Why scriptPubKey is a series of commands?

I am not fully understanding the design purpose of the scriptPubKey in the transaction output. I think the tx's (say tx1 here) output could just be the receiver's public key's hash. Then when the ...
2
votes
2answers
2k views

Is that safe to expose public key to the mainnet

Because every time when someone want to spend some money under an address, he need to provide public key and sent the content to the mainnet. (Please correct me if that is not correct) Where can I ...
2
votes
0answers
1k views

Creating publicKey from random programtically in c#

I've been looking around I can't understand or find a complete explanation of how to accomplish this, I've tried multiple way even this link How do you get a Bitcoin Public Key from a Private Key ...
5
votes
1answer
539 views

Derive new public keys from a public key?

This article says you can generate new public keys from an already generated public key. How is this possible? https://bitcoinmagazine.com/articles/deterministic-wallets-advantages-flaw-1385450276 ...
0
votes
1answer
376 views

How to get the MPK using bitcoinj and how to generate the addresses using the MPK?

I am trying to get the MPK of a wallet using bitcoinj. Can I get the DeterministicSeed, which is the seed of the wallet and get the MnemonicCode of 12 words. But I can't get the MPK. As I can make it ...
2
votes
1answer
102 views

What happens to the overall value of Bitcoin when a huge amount of coin is lost?

My question is 2 part: 1. How does somebody know that a set of bitcoins is lost? Merely declaring that I've lost my private key and hence bitcoin makes the coins lost? 2. What impact(and why?) would ...
1
vote
2answers
1k views

On public keys compression, why an even or odd y coordinate corresponds to the positive / negative sign respectively?

This is a paragraph from Andreas' book on compressed/uncompressed public keys. Chapter 4 - Section - Key Formats Whereas uncompressed public keys have a prefix of 04 ,compressed public keys ...
1
vote
0answers
602 views

Cryptocurrencies based on RSA instead of ECDSA

Bitcoin is based on ECDSA. Does anyone know of cryptocurrencies based on RSA for authentication?
1
vote
1answer
524 views

How does ripple verify the signature?

As I understand, the client send the following information to server 1.the hash of the message, 2. public key 3. signature made by private key And the server verified the signature with the ...
1
vote
1answer
862 views

What is the variable valertpubkey in net.cpp for?

vAlertPubKey = ParseHex("04fc9702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284"); The vAlertPubKey variable can be seen in ...
4
votes
2answers
2k views

Where is the public key corresponding to my address stored?

Some simplified explanations of Bitcoin say, that the Bitcoin address is the public key, and anybody can easily verify that a signed transaction is valid since it was signed with corresponding private ...
3
votes
1answer
207 views

Is there a service where you can generate public/private keys without anyone knowing? Like a tamperproof digital envelope

Is there a service where it generates a BTC address with public/private key, but no one knows it until someone pays a fee to reveal it? The idea is basically, some script or some other decentralized ...
4
votes
1answer
986 views

How to determine if a public key point y is negative or positive, odd or even?

Take a bitcoin public key (x, y) and its additive inverse (x, -y). How do you identify which is the positive point and which is the negative point? Example Private key 1 -> (x, y) x = ...
2
votes
1answer
614 views

Secret Key value for decimal versions over 127

After reviewing the address prefixes page on the wiki, I have noticed that in Bitcoin and other altcoins that the secret key / dumped private key header is always the decimal version + 128. So with a ...
1
vote
1answer
545 views

Creating a Bitcoin online wallet service

My question is this: Lets say I wanted to create a bitcoin site, where users register and can deposit bitcoins into their account. should i use my MPK to generate infinite addresses, so after a user ...
5
votes
1answer
546 views

What is the use of hashing the public key to obtain the bitcoin address?

What is the use of hashing the public key to obtain the bitcoin address (except to compress it) rather than using the public key directly? Why not deal with public keys directly?
4
votes
2answers
4k views

What is the public key used to generate the Genesis block?

I'm trying to create and build a working fork of Bitcoin -- in order to understand how it works at the source code level. I see a lot of articles explaining how to create altcoins but they are not ...
4
votes
1answer
2k views

Generate addresses without private key: Stealth addresses vs Master Public Key

In my case a store owner has different POS terminals. On none of the terminals should be a private key stored! The owner has one wallet, where he wants to get all transactions aggregated, done on the ...
1
vote
1answer
1k views

Is there a deterministic private-public keypair generator without the BIP32 private key revealing issue?

HD Wallets have a flaw that revealing a private key and its parent master public key will reveal its parent master private key. (Described here[1] and here[2]). Isn't there a similar concept with ...
1
vote
1answer
103 views

how is the private/public keypair for spent bitcoins connected to the private/public keypair which corresponds to my address?

Spending bitcoins costs me to sacrifice (i.e. can only be used once) a private/public keypair, am I right? Receiving does not use up a private/public keypair, am I right? Creating a new address also ...
2
votes
1answer
1k views

Does a private key always generate the same public key and address?

It seems like depending on the method you get different public keys and addresses when using bitcoin-ruby with the same private key. I am probably doing something wrong, but I am not sure where it is.....
0
votes
1answer
376 views

Bitcoin Testnet Trouble with bitcoin-ruby

I am having trouble with the bitcoin-ruby gem. I get the following error when trying to send money to another address I have on the test network: /var/lib/gems/2.2.0/gems/bitcoin-ruby-0.0.7/lib/...
1
vote
2answers
226 views

Is it possible to shift/modify a ECDSA keypair by a scalar where the public key can be computed using only public information?

I am looking for a method which would allow a keypair to be modified in a manner which is unpredictable to the original creator. So I was thinking a user creates a key and commits it by making a ...
5
votes
2answers
2k views

Is it possible to discover the set of bitcoin addresses from a public key?

I'm trying to find the set of bitcoin addresses from a public key associated with a user just to analyse this user transaction. Is there any way to derive/find all the addresses that have been ...
1
vote
0answers
399 views

How many unique public keys have been published to the block chain?

There have been estimates of the number of published addresses. For example: https://blockchain.info/charts/n-unique-addresses (this chart seems to be underestimating the address count) However, I'...
0
votes
0answers
200 views

Extract all public keys from blockchain [duplicate]

I want to extract all public keys from the blockchain. Those will probably mostly be keys that have been used to sign transactions. How would I do this?
13
votes
3answers
19k views

All Bitcoin Public Keys with non-zero balance

I want to get a database or otherwise retrieve a set off all bitcoin public keys (not addresses) that have non zero balances. What would be the easiest way to do that? Is there an API that could do ...
4
votes
1answer
788 views

Can I verify a sub public key came from it's parent public key in a HD wallet without involving any private keys?

I know I can sign a piece of text using a bitcoin private key to prove control over a public address but are there any operations I can perform to know if a public key submitted to me was derived from ...
4
votes
3answers
5k views

ripemd160(sha256(publickey)) - Where am I going wrong?

(Note: I'm using http://www.royalforkblog.com/2014/08/11/graphical-address-generator/ (use "bitcoin" as the phrase for generating the private key) I'm trying to take the first step in going from a ...
3
votes
1answer
3k views

About performing SHA-256 hashing on the public key

I am following this link, trying to perform SHA-256 on a given public key. However, I cannot get the expected result. I am using the sha256 library in python hashlib The input is ...
0
votes
1answer
2k views

What version byte will produce a Base58 encoding starting with X?

What is the Value of X in Base58? The Problem is when I referred to this table: https://en.bitcoin.it/wiki/Base58Check_encoding I in the end come up with D when I used 30, but I want X, so what will ...
0
votes
2answers
7k views

Can one wallet send/receive bitcoins from/to multiple sources simultaneously?

Let's say for example I put my public bitcoin address on a website for donations and multiple people for around the world deposit bitcoins simultaneously to that same wallet: Will all deposit ...
1
vote
2answers
4k views

How can transactions be verified without the private key?

Trying to get my head around her royal Bitcoin here... I understand that blocks of transactions are broadcast to the network, and that miners verify that the BC is 'spendable' by trawling the ...
15
votes
1answer
3k views

Can private keys remain offline for their entire life?

I am new to Bitcoin and this question is based on 3 assumptions that may be incorrect. Assumption 1: If I understand correctly, the Bitcoin address is generated algorithmically independent of the ...
1
vote
1answer
3k views

Create addresses in bulk; and check balance

I am new to Bitcoin; our company wants to use bitcoin for payments. We need to create a address for each transaction. so we need to create many public address. First, I need to generate many public ...
3
votes
2answers
563 views

How safe is bitcoin with regard to a random address generation attack? [duplicate]

Imagine an attacker implementing something like the following pseudocode on the fastest ASIC farm money can buy: attack(blockchain, my_address) addresses = generate_tree_of_all_nonempty_addresses(...
2
votes
3answers
3k views

two people with same PUBLIC address, how will people/network know how to deliver bitcoin

I understand that a bitcoin address is a combination or more than one kind of encryption and entropy, and I also understand how improbable it is that the same address will get generated at the same ...
3
votes
1answer
2k views

How to generate the public Nextcoin key (NXT)?

There doesnt seem to be an API call that returns the public key for my NXT account (with which I have not sent out any coins yet). The NXT wallet does display the public key after I log in, but how ...
2
votes
0answers
995 views

Where can I find a C or C++ implementation of converting bitcoin privatekey to bitcoin public key and bitcoin address?

There are versions in python and some such things, but I need a C version (or at least C++). I do have the sha256, RMD160 in C already, and those functions are called. Thank you.
1
vote
1answer
102 views

Other ways to determine the validity of a public key

Public key 3, 4 fits the equation of y^2 = x^2 + 7 Yet this comes up as an "invalid public key". How is that invalid? Sure, it deviates extremely from other numbers, but what other equations are ...
8
votes
2answers
5k views

How can I get the uncompressed public key from the compressed public key in openssl?

Given a private key, I can get the uncompressed or compressed version of the public key like so. EC_KEY* pKey = EC_KEY_new_by_curve_name(NID_secp256k1); std::vector<unsigned char> getPubKey(...
1
vote
1answer
174 views

Compressed keys default for brainwallet?

I'm somewhat confused re compressed addresses... Assuming I were to make a brainwallet using "correct horse battery staple" as my passphrase gives 1JwSSubhmg6iPtRjtyqhUYYH7bZg3Lfy1T (uncompressed ...
5
votes
1answer
17k views

How can I convert a bitcoin public key to a bitcoin address?

How can I convert a bitcoin public key to a bitcoin address? Note: I am using PHP. Is there an existing bitcoin API or PHP-API to do that converting ?

1
5 6
7
8 9