<p>Solved it with the help of the support of Pocket Bitcoin. T
Get the Adress you want to sign with, I used the RTL interface to generate a new onchain adress but you can also use</p>
<pre><code>lncli wallet addresses list
</code></pre>
<p>Be wary though this might entail already used adress so first confirm that you are not reusing an address you already used in the past (you can e.g. verify via mempool.space)</p>
<p>Signing itself is then very easy via.</p>
<pre><code>lncli wallet addresses signmessage --address &lt;enteradreee&gt; --msg &lt;msg&gt;
</code></pre>

CC BY-SA 4.0
2023-12-20T09:14:56.797Z
2023-12-20T09:14:56.797Z
b.volution
<p>For an absolute beginner, how do I sign the new adress formats (taproot e.g.)? In Ride the Lightning (RTL) there is the possiblity to sign messages for lightning.</p>
<p>But I need to sign from a specific onchain adress. I also tried <code>bitcoin-cli signmessage &lt;adr&gt; &lt;msg&gt;</code> but this did neither work for a taproot adress nor for a Bech32 address (both generated from RTL).</p>
<p>The error message returned is</p>
<pre><code>error code: -32601
error message:
Method not found
</code></pre>
<p>which somehow seems like the signmessage command is unkown?</p>
<p>I also found <a href="https://bitcoin.stackexchange.com/questions/98518/signmessage-and-verifymessage-cli-commands-not-accepting-address-from-getnewaddr">this</a> thread. However I am currently unaware where to get the private key from for the suggested solution <code>signmessagewithprivkey</code></p>
<p>I tried <code>bitcoin-cli dumpprivkey &lt;adr&gt;</code> which resulted in the same error as above (Method not found).</p>

<taproot><message-signing><raspberry-pi>
Signmessage with Raspiblitz
b.volution
# Signmessage with Raspiblitz

(Asked by: username_0 on 2023-12-19)

For an absolute beginner, how do I sign the new adress formats (taproot e.g.)? In Ride the Lightning (RTL) there is the possiblity to sign messages for lightning.

But I need to sign from a specific onchain adress. I also tried `bitcoin-cli signmessage <adr> <msg>` but this did neither work for a taproot adress nor for a Bech32 address (both generated from RTL).

The error message returned is

```
error code: -32601
error message:
Method not found

```

which somehow seems like the signmessage command is unkown?

I also found [this](https://bitcoin.stackexchange.com/questions/98518/signmessage-and-verifymessage-cli-commands-not-accepting-address-from-getnewaddr) thread. However I am currently unaware where to get the private key from for the suggested solution `signmessagewithprivkey`

I tried `bitcoin-cli dumpprivkey <adr>` which resulted in the same error as above (Method not found).

**Tags:** taproot, message-signing, raspberry-pi


---

## 1 answers

### Answer by username_0 on 2023-12-20. Score: 1

Solved it with the help of the support of Pocket Bitcoin. T
Get the Adress you want to sign with, I used the RTL interface to generate a new onchain adress but you can also use

```
lncli wallet addresses list

```

Be wary though this might entail already used adress so first confirm that you are not reusing an address you already used in the past (you can e.g. verify via mempool.space)

Signing itself is then very easy via.

```
lncli wallet addresses signmessage --address <enteradreee> --msg <msg>

```


---

