<p>Yes, you can use a hierarchical key (&quot;xpub&quot;) to do that. The seller will generate a wallet and provide you with their wallet's &quot;xpub&quot; public key, and they keep the corresponding private key &quot;xprv&quot;. You can use the &quot;xpub&quot; to generate addresses for their wallet, and the seller can use their &quot;xprv&quot; private key to spend from those addresses.</p>
<p>I believe most wallet software supports this by default.</p>

CC BY-SA 4.0
2021-02-18T07:24:30.813Z
2021-02-18T07:24:30.813Z
ieatpizza
<p>I implement a webshop, basically it is more than a wehshop a marketplace and I would offer Bitcoin payment. There are 3 roles: buyer, seller, and the marketplace.</p>
<p>The procedure I imagined, that that seller has the private key. Seller derive adresses, where one would epxect the incomes. Seller hands those addresses to marketplace.</p>
<p>When buyer comes and want to purchase a product, marketplace return an address. Marketplace record in DB which buyer and address belongs together. Later Maketplace pull Blockchain, and check wether amount appeared in the specified address. If so, than pruduct can be shipped.</p>
<p>So:</p>
<p>Is it possible derive pathes without prive key? If so in which wallet?</p>

<wallet><bitcoin-core-development><development><bip32-hd-wallets>
Is it possible derive pathes without prive key? If so in which wallet?
János
# Is it possible derive pathes without prive key? If so in which wallet?

(Asked by: username_0 on 2021-01-31)

I implement a webshop, basically it is more than a wehshop a marketplace and I would offer Bitcoin payment. There are 3 roles: buyer, seller, and the marketplace.

The procedure I imagined, that that seller has the private key. Seller derive adresses, where one would epxect the incomes. Seller hands those addresses to marketplace.

When buyer comes and want to purchase a product, marketplace return an address. Marketplace record in DB which buyer and address belongs together. Later Maketplace pull Blockchain, and check wether amount appeared in the specified address. If so, than pruduct can be shipped.

So:

Is it possible derive pathes without prive key? If so in which wallet?

**Tags:** wallet, bitcoin-core-development, development, bip32-hd-wallets


---

## 1 answers

### Answer by username_1 on 2021-02-18. Score: 0 | Accepted answer

Yes, you can use a hierarchical key ("xpub") to do that. The seller will generate a wallet and provide you with their wallet's "xpub" public key, and they keep the corresponding private key "xprv". You can use the "xpub" to generate addresses for their wallet, and the seller can use their "xprv" private key to spend from those addresses.

I believe most wallet software supports this by default.


---

