<p>So at the end, there was some part of .NET SDK missing on the system. Managed to pull the log from NBXplorer service.</p>
<pre><code>System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Parallel
</code></pre>
<p>Reinstall of .NET6.0 and rebuild of NBXplorer solved the issues.</p>

CC BY-SA 4.0
2023-08-17T20:39:47.507Z
2023-08-17T20:39:47.507Z
Gusep
<p>If this is a regression introduced in a newer release of BTCPayServer, it's better addressed there. That said, from the screenshot the text input seems to be expecting a descriptor.</p>
<p><code>zpub</code> is just another encoding for an <code>xpub</code> which implicitly conveys it is used to derive at specific path for P2WPKH outputs (more about this in <a href="https://bitcoin.stackexchange.com/a/89281/101498">this answer</a>). Therefore you can just convert your <code>zpub</code> to an <code>xpub</code> and use a <code>wpkh(xpub/84'/1'/0'/1/*)</code> which should derive the same <code>bc1..</code> addresses as when using a <code>zpub</code>.</p>

CC BY-SA 4.0
2024-01-15T12:06:12.363Z
2024-01-15T12:06:12.363Z
Antoine Poinsot
<p>I'm trying to connect my BTCPay server to hardware walet by entering the public key. The HW wallet account is P2WPKH, the public key has a <code>zpub…</code> format.</p>
<p>When I enter the key, server correctly generates a <code>bc1…</code> address for confirmation, but when I hit the button to confirm, I'm redirected back to the previous page (somewhat modified) with error &quot;Invalid derivation scheme&quot;.</p>
<p>This pub key worked on my previous BTCPay instance without any problems. I have no idea what is going on. Any help or insight appreciated!</p>
<p>Running BTCPay Server v1.11.1</p>
<p><a href="https://i.sstatic.net/gWqjT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gWqjT.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-08-14T15:01:17.193Z
Hi Gusep, have you tried filing a bug report with BTCPayServer?
Murch
CC BY-SA 4.0
2023-08-15T20:29:11.600Z
I haven't yet, tried the support chat but still no luck
Gusep
CC BY-SA 4.0
2023-08-16T10:23:00.907Z
I discovered, that I'm not even able to cerate hot wallet. Created a new discussion on btcpayserver github regarding this but still not an inch closer to solution https://github.com/btcpayserver/btcpayserver/discussions/5260
Gusep
<wallet><public-key><btcpay>
BTCPayServer - importing wallet using zpub
Gusep
# BTCPayServer - importing wallet using zpub

(Asked by: username_0 on 2023-08-11)

I'm trying to connect my BTCPay server to hardware walet by entering the public key. The HW wallet account is P2WPKH, the public key has a `zpub…` format.

When I enter the key, server correctly generates a `bc1…` address for confirmation, but when I hit the button to confirm, I'm redirected back to the previous page (somewhat modified) with error "Invalid derivation scheme".

This pub key worked on my previous BTCPay instance without any problems. I have no idea what is going on. Any help or insight appreciated!

Running BTCPay Server v1.11.1

[![enter image description here](https://i.sstatic.net/gWqjT.png)](https://i.sstatic.net/gWqjT.png)

**Tags:** wallet, public-key, btcpay

> **Comments:**
> **username_1**: Hi username_0, have you tried filing a bug report with BTCPayServer?  
> **username_0**: I haven't yet, tried the support chat but still no luck  
> **username_0**: I discovered, that I'm not even able to cerate hot wallet. Created a new discussion on btcpayserver github regarding this but still not an inch closer to solution https://github.com/btcpayserver/btcpayserver/discussions/5260  

---

## 2 answers

### Answer by username_0 on 2023-08-17. Score: 1

So at the end, there was some part of .NET SDK missing on the system. Managed to pull the log from NBXplorer service.

```
System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Parallel

```

Reinstall of .NET6.0 and rebuild of NBXplorer solved the issues.


---

### Answer by username_2 on 2024-01-15. Score: 0

If this is a regression introduced in a newer release of BTCPayServer, it's better addressed there. That said, from the screenshot the text input seems to be expecting a descriptor.

`zpub` is just another encoding for an `xpub` which implicitly conveys it is used to derive at specific path for P2WPKH outputs (more about this in [this answer](https://bitcoin.stackexchange.com/a/89281/101498)). Therefore you can just convert your `zpub` to an `xpub` and use a `wpkh(xpub/84'/1'/0'/1/*)` which should derive the same `bc1..` addresses as when using a `zpub`.


---

