Bitcoin Forum
May 31, 2024, 02:35:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to receive btc on xpub key on bitcond  (Read 583 times)
annie9771 (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


View Profile
March 13, 2017, 06:09:05 PM
Merited by ABCbits (1)
 #1

Greetings ,

My team installed bitcoin core on VPS , as much i know xpub key is multi addresses , now i wants that my team use xpub key to receive btc from users but i can't explain them technically ... please explain me how to generate xpub key and how to get btc on xpub key , currently web application is working on RPC protocol . Thanks
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
March 13, 2017, 06:42:27 PM
Merited by ABCbits (1)
 #2

You cannot receive Bitcoin directly to an xpub. You use the xpub to derive new addresses which you use to receive Bitcoin. However, Bitcoin Core uses hardened xpub keys so you can only derive addresses by using the xpriv to derive the private key and then get the address from that.

annie9771 (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


View Profile
March 13, 2017, 06:46:26 PM
 #3

so basically through xpriv  i can get new address and it can be use to withdraw payments and for security of users accounts

You cannot receive Bitcoin directly to an xpub. You use the xpub to derive new addresses which you use to receive Bitcoin. However, Bitcoin Core uses hardened xpub keys so you can only derive addresses by using the xpriv to derive the private key and then get the address from that.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
March 13, 2017, 06:56:58 PM
 #4

so basically through xpriv  i can get new address and it can be use to withdraw payments and for security of users accounts
Yes. However the xpriv is the master private key, so you should not be sharing that with anyone.

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!