<p>This is a stupid question because if the P2SH contains the hash160 (and the hash160 contains the sha256) of the P2MS doesn't possible return to the original hex P2MS.</p>

<p>So, but for verifying the P2SH I must insert the real redmee script inside the scriptSig, so if I parsing the scriptSing I can found the N signature and the M "public key" inside the script P2MS, right?</p>

<p>An example, inside an scientific article <a href="https://blockstream.info/address/3CD1QW6fjgTwKq3Pj97nty28WZAVkziNom" rel="nofollow noreferrer">this address</a> is cataloged such as scam address, but this address is a script address, so it could is:</p>

<ul>
<li>a P2MS script with M "public keys"</li>
<li>a script without the "public keys"</li>
</ul>

<p>But I can access the scriptSig and parsing the hexadecimal, I should be found the original script, right?</p>

CC BY-SA 4.0
2019-10-23T10:26:51.453Z
Are you trying to extract the bare multisig script from a P2SH multisig address?
Raghav Sood
CC BY-SA 4.0
2019-10-23T11:37:18.433Z
I'm trying to validate my idea, i.e the "public key" push inside the P2MS script can be extracted to parsing the scriptSig of the transaction unlock it.
vincenzopalazzo
<script><multi-signature><signature><p2sh><input-script>
Is possible extract the original script P2MS from the transaction locked with the P2SH address?
vincenzopalazzo
# Is possible extract the original script P2MS from the transaction locked with the P2SH address?

(Asked by: username_0 on 2019-10-23)

This is a stupid question because if the P2SH contains the hash160 (and the hash160 contains the sha256) of the P2MS doesn't possible return to the original hex P2MS.

So, but for verifying the P2SH I must insert the real redmee script inside the scriptSig, so if I parsing the scriptSing I can found the N signature and the M "public key" inside the script P2MS, right?

An example, inside an scientific article [this address](https://blockstream.info/address/3CD1QW6fjgTwKq3Pj97nty28WZAVkziNom) is cataloged such as scam address, but this address is a script address, so it could is:

* a P2MS script with M "public keys"
* a script without the "public keys"

But I can access the scriptSig and parsing the hexadecimal, I should be found the original script, right?

**Tags:** script, multi-signature, signature, p2sh, input-script

> **Comments:**
> **username_1**: Are you trying to extract the bare multisig script from a P2SH multisig address?  
> **username_0**: I'm trying to validate my idea, i.e the "public key" push inside the P2MS script can be extracted to parsing the scriptSig of the transaction unlock it.  

---

## 0 answers

