<p>You could try to import the private keys that the Javascript function gives you into wallet software like Electrum, then check that the associated payment address shows up on the 'Addresses' tab. You should be able to left-click on the payment address and use the option to display its private key, just to triple check if you wish.</p>

CC BY-SA 4.0
2022-01-30T08:37:23.897Z
Good suggestion, I just tried it. Unfortunately, Electrum only shows me a "Legacy" address, not the Native SegWit address. But thanks for the suggestion.
thanks_in_advance
CC BY-SA 4.0
2022-01-30T08:22:40.827Z
2022-01-30T08:22:40.827Z
ieatpizza
<p>I'm helping someone put a <em>Native SegWit address (bc1...)</em> on a website to collect Bitcoin donations.</p>
<p>I've found some javascript code that generates <em>Private Key</em> and <em>Native SegWit address</em> pairs <em>offline</em>. (I don't want to use a managed wallet. I prefer a paper wallet.)</p>
<p>I want to generate a couple &quot;throwaway&quot; pairs and test them to see if they are, indeed, legit. That is, the <em>Native SegWit address</em> indeed maps to the <em>Private Key</em>. <strong>How may I test this?</strong></p>
<p>Update: here's an example of a pair:</p>
<ul>
<li>L2xHquk5T9d7LZz27pDgMdrnisiLNkADscHcsJbNCs5qBStb3r1k</li>
<li>bc1qxhq4au5m74nv925fr6fzqaux3akn38gf3m9628</li>
</ul>
<hr />
<p>Update: I verified the pair was legit by using this tool: <a href="https://kimbatt.github.io/btc-address-generator/?page=address-details" rel="nofollow noreferrer">https://kimbatt.github.io/btc-address-generator/?page=address-details</a></p>

CC BY-SA 4.0
2022-02-01T00:44:40.183Z
If you verified the private key using an internet-connected tool, you should not use that key for receiving bitcoin. Stay Safe!
Sachin Meier
<address><private-key>
How can I verify that a system is generating legit Private Key and Native SegWit address pairs?
thanks_in_advance
# How can I verify that a system is generating legit Private Key and Native SegWit address pairs?

(Asked by: username_0 on 2022-01-30)

I'm helping someone put a *Native SegWit address (bc1...)* on a website to collect Bitcoin donations.

I've found some javascript code that generates *Private Key* and *Native SegWit address* pairs *offline*. (I don't want to use a managed wallet. I prefer a paper wallet.)

I want to generate a couple "throwaway" pairs and test them to see if they are, indeed, legit. That is, the *Native SegWit address* indeed maps to the *Private Key*. **How may I test this?**

Update: here's an example of a pair:

* L2xHquk5T9d7LZz27pDgMdrnisiLNkADscHcsJbNCs5qBStb3r1k
* bc1qxhq4au5m74nv925fr6fzqaux3akn38gf3m9628

---

Update: I verified the pair was legit by using this tool: <https://kimbatt.github.io/btc-address-generator/?page=address-details>

**Tags:** address, private-key

> **Comments:**
> **username_1**: If you verified the private key using an internet-connected tool, you should not use that key for receiving bitcoin. Stay Safe!  

---

## 1 answers

### Answer by username_2 on 2022-01-30. Score: 2

You could try to import the private keys that the Javascript function gives you into wallet software like Electrum, then check that the associated payment address shows up on the 'Addresses' tab. You should be able to left-click on the payment address and use the option to display its private key, just to triple check if you wish.

> **Comments:**
> **username_0**: Good suggestion, I just tried it. Unfortunately, Electrum only shows me a "Legacy" address, not the Native SegWit address. But thanks for the suggestion.  

---

