<p>It is a multisignature 2-of-2 address.</p>

<p>I have annotated the script:</p>

<pre><code>scriptPubKey length: 51
Push the following 33 bytes onto the stack: 21
Compressed public key: 0241b8aba0994f320a8b438c627dbf31fbdd7dc722dd8418d829d67a9c6e4fd690
Push the following 33 bytes onto the stack: 21
Compressed public key: 036fbd9d0a34a569f10b0431c8aeecf74ad796b99838b7272ef35ded130a794f9b
OP_2: 52
OP_CHECKMULTISIG: ae
</code></pre>

<p>If you change DONATION_SCRIPT[2:35] to your own compressed public key, and DONATION_SCRIPT[36:69] to another compressed public key, that should work.</p>

CC BY-SA 3.0
2015-03-18T19:38:42.880Z
2015-03-18T19:38:42.880Z
Nick ODell
<p>I am working on the fork of p2pool to a new coin, and it seems that the donation script in the original could only accept BTC, etc.
How to change this script to a new address? It looks like something below:</p>

<pre><code>DONATION_SCRIPT = '51210241b8aba0994f320a8b438c627dbf31fbdd7dc722dd8418d829d67a9c6e4fd69021036fbd9d0a34a569f10b0431c8aeecf74ad796b99838b7272ef35ded130a794f9b52ae'.decode('hex')
</code></pre>

<p>I dig for a while, and could see that DONATION_SCRIPT[2:35] is pubkey of donation address, but what's the rest of them?
Any comments will be appreciated, thanks a lot.</p>

<script><p2pool>
How to change donation address of p2pool
user14269
# How to change donation address of p2pool

(Asked by: username_0 on 2013-07-28)

I am working on the fork of p2pool to a new coin, and it seems that the donation script in the original could only accept BTC, etc.
How to change this script to a new address? It looks like something below:

```
DONATION_SCRIPT = '51210241b8aba0994f320a8b438c627dbf31fbdd7dc722dd8418d829d67a9c6e4fd69021036fbd9d0a34a569f10b0431c8aeecf74ad796b99838b7272ef35ded130a794f9b52ae'.decode('hex')

```

I dig for a while, and could see that DONATION\_SCRIPT[2:35] is pubkey of donation address, but what's the rest of them?
Any comments will be appreciated, thanks a lot.

**Tags:** script, p2pool


---

## 1 answers

### Answer by username_1 on 2015-03-18. Score: 1

It is a multisignature 2-of-2 address.

I have annotated the script:

```
scriptPubKey length: 51
Push the following 33 bytes onto the stack: 21
Compressed public key: 0241b8aba0994f320a8b438c627dbf31fbdd7dc722dd8418d829d67a9c6e4fd690
Push the following 33 bytes onto the stack: 21
Compressed public key: 036fbd9d0a34a569f10b0431c8aeecf74ad796b99838b7272ef35ded130a794f9b
OP_2: 52
OP_CHECKMULTISIG: ae

```

If you change DONATION\_SCRIPT[2:35] to your own compressed public key, and DONATION\_SCRIPT[36:69] to another compressed public key, that should work.


---

