Bitcoin Forum
November 13, 2024, 01:21:59 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Beginner question: What is the master public key and how are addresses generated  (Read 20699 times)
rezilient (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
March 20, 2014, 05:50:35 PM
 #1

Hello.  I am using a Wordpress plugin on my e-commerce website to accept Bitcoin payments and it uses an Electrum address for receiving the payment.  Some questions:

1) The Bitcoin payment gateway plugin asks for the Electrum Master Public Key.  When a payment is received how do I know which address it is going to?

2) I currently use Coinbase for buying/sending BTC.  Can the Electrum balance be "tracked" somehow in my Coinbase wallet so I can keep track of and consolidate my BTC balances?

3) If I understand correctly, the Electrum wallet can be re-generated simply using the "seed phrase" - what if someone finds this phrase, is that all they need to steal my coins?

Thanks in advance!
Rezilient

You don't pay enough.
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
March 20, 2014, 08:22:58 PM
 #2

a) Electrum is a desktop client. See the screens here: https://electrum.org/

3) The seed is explained here: https://electrum.org/seed.html . Yes, if the seed were to be discovered by a thief you will loose your coins. But the seed is a random number so it can't be guessed.

2) Maybe if they allow you to add watch-only addresses, but see a) above.

1) The master public key allows you to generate addresses independently of the seed. Using the MPK you can generate addresses, but you can't spend bitcoins sent to them. Bitcoins sent to your addresses will show up in your electrum window.

rezilient (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
March 20, 2014, 08:41:06 PM
 #3

Using the MPK you can generate addresses, but you can't spend bitcoins sent to them. Bitcoins sent to your addresses will show up in your electrum window.

Thanks for the quick reply.  As you can see here (https://wordpress.org/plugins/bitcoin-payments-for-woocommerce/screenshots/) the wordpress plugin asks for the Electrum MPK.  Now I did a test payment and I can see the payment came to an address that I guess was created automatically.  Now are you saying the Bitcoins sent to this address cannot be spent?  I'm a bit confused...

Thanks.

You don't pay enough.
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
March 20, 2014, 08:55:30 PM
 #4

Now are you saying the Bitcoins sent to this address cannot be spent?  I'm a bit confused...

Knowledge of the private keys (private not public) determines bitcoin ownership. *You* can spend the bitcoins because you have the bitcoin wallet running on your computer. That wallet file has, among other things, the seed from which all your bitcoin private keys are derived.

Installing the MPK on your web server allows your WP installation to independently generate addresses without risking your bitcoins in the event of a server compromise. You cannot generate the private keys behind the addresses with just the MPK therefore your bitcoins cannot be stolen.

rezilient (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
March 20, 2014, 09:06:59 PM
 #5

Now are you saying the Bitcoins sent to this address cannot be spent?  I'm a bit confused...

Knowledge of the private keys (private not public) determines bitcoin ownership. *You* can spend the bitcoins because you have the bitcoin wallet running on your computer. That wallet file has, among other things, the seed from which all your bitcoin private keys are derived.

Installing the MPK on your web server allows your WP installation to independently generate addresses without risking your bitcoins in the event of a server compromise. You cannot generate the private keys behind the addresses with just the MPK therefore your bitcoins cannot be stolen.



Great explanation. Thank you! 

Is keeping a significant amount of BTC (50+ BTC) in Electrum safe enough, or do you recommend that I print them out to physical paper wallets?

You don't pay enough.
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
March 20, 2014, 09:27:02 PM
 #6

Great explanation. Thank you! 

Is keeping a significant amount of BTC (50+ BTC) in Electrum safe enough, or do you recommend that I print them out to physical paper wallets?

For a large amount of bitcoins you should use an offline electrum wallet. It is superior to a paper wallet because you get unlimited addresses and other features that come with a full fledged wallet. There is a guide for this on the electrum site but this is not a setup for a newbie. First get comfortable using electrum then try for an offline setup.
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
March 20, 2014, 09:51:04 PM
 #7

This is something for you to consider after you've used electrum for a few days:

I should like to add that regarding 1) above you may have to raise the gap limit for your electrum "merchant" wallet to see some payments.

Think of the gap limit as how many addresses forward electrum looks for for transactions. By default it looks for 5 addresses since the last address where you received money. For a merchant wallet you may want to increase it to something like 75 or 100.

To change it switch to the console tab and type the following:

Code:
wallet.storage.put( 'gap_limit', 75 )

Then exit and reopen electrum.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!