<p>I did not find a good answer, so I coded a small GUI to perform signatures using private keys, verify a signature using a public key (or an address) and verify a p2sh M-of-N multisig script against a list of N public keys and the parameter M.</p>
<p>This information is easy to find with a simple right click on an address in Electrum (View Details).</p>
<p><a href="https://github.com/PiRK/signverify" rel="nofollow noreferrer">https://github.com/PiRK/signverify</a></p>
<p>I made it primarily for BCHA, but it works for BTC if you paste a legacy p2sh address instead of a CashAddr.</p>

CC BY-SA 4.0
2020-12-30T10:03:32.480Z
2020-12-30T10:03:32.480Z
PiRK
<p>I use Electrum with a multisig wallet. I would like to figure out how to prove ownership of a &quot;coin&quot;.</p>
<p>I understand that I need to share the whole redeem script so that it's hash can be verified against the UTXO I want to prove ownership off. And then I need to sign a message using at least N of M (as defined when creating the multisig wallets) private keys corresponding to the public keys in the redeem script.</p>
<p>My question is how can I display the redeem script in Electrum, in a human readable way that allows to clearly identify N, M and all of the public keys?</p>
<p>How can I display the data structure encoding the redeem script on the blockchain, whose hash constitutes the ps2h address (without spending the UTXO)?</p>

CC BY-SA 4.0
2020-12-28T10:32:23.223Z
Good question. For the future, i hope wallets will implement lifting Bitcoin Scripts to Miniscript policy: they allow a more natural sight over spending condition (see http://bitcoin.sipa.be/miniscript/) . In the meanwhile i don't have an answer to your question but i think the title should be "how to display the redeemScript on Electrum", feel free to revert the EDIT if i'm wrong!
Antoine Poinsot
CC BY-SA 4.0
2020-12-28T10:38:29.973Z
I understand. But I'm willing to accept answers that involve using external tools other than Electrum, as long as it is reasonably achievable by a non-programmer. For instance if Electrum can somehow display the redeem script in a binary/hex format, and there is an external tool to decode it, I'm interested.
PiRK
<electrum><multi-signature><message-signing>
Electrum: display redeem script of a P2SH utxo
PiRK
# Electrum: display redeem script of a P2SH utxo

(Asked by: username_0 on 2020-12-28)

I use Electrum with a multisig wallet. I would like to figure out how to prove ownership of a "coin".

I understand that I need to share the whole redeem script so that it's hash can be verified against the UTXO I want to prove ownership off. And then I need to sign a message using at least N of M (as defined when creating the multisig wallets) private keys corresponding to the public keys in the redeem script.

My question is how can I display the redeem script in Electrum, in a human readable way that allows to clearly identify N, M and all of the public keys?

How can I display the data structure encoding the redeem script on the blockchain, whose hash constitutes the ps2h address (without spending the UTXO)?

**Tags:** electrum, multi-signature, message-signing

> **Comments:**
> **username_1**: Good question. For the future, i hope wallets will implement lifting Bitcoin Scripts to Miniscript policy: they allow a more natural sight over spending condition (see http://bitcoin.sipa.be/miniscript/) . In the meanwhile i don't have an answer to your question but i think the title should be "how to display the redeemScript on Electrum", feel free to revert the EDIT if i'm wrong!  
> **username_0**: I understand. But I'm willing to accept answers that involve using external tools other than Electrum, as long as it is reasonably achievable by a non-programmer. For instance if Electrum can somehow display the redeem script in a binary/hex format, and there is an external tool to decode it, I'm interested.  

---

## 1 answers

### Answer by username_0 on 2020-12-30. Score: 1

I did not find a good answer, so I coded a small GUI to perform signatures using private keys, verify a signature using a public key (or an address) and verify a p2sh M-of-N multisig script against a list of N public keys and the parameter M.

This information is easy to find with a simple right click on an address in Electrum (View Details).

<https://github.com/username_0/signverify>

I made it primarily for BCHA, but it works for BTC if you paste a legacy p2sh address instead of a CashAddr.


---

