Closed poiuty closed 9 years ago
Find decode. Donate send to https://chainz.cryptoid.info/dash/address.dws?Xcfme7cJDpWBgQE7Bsf71pPmse9YCjV2CF.htm
darkcoind decodescript '41042d71f6448f92c35ede838e3922313b162cbf20d357e7d067115aac8d1a27f66a89b46dee086775c8b083ee5f06fe1c08d1d0ae0668d029aed17e1f8eaea544d4ac'
{
"asm" : "042d71f6448f92c35ede838e3922313b162cbf20d357e7d067115aac8d1a27f66a89b46dee086775c8b083ee5f06fe1c08d1d0ae0668d029aed17e1f8eaea544d4 OP_CHECKSIG",
"reqSigs" : 1,
"type" : "pubkey",
"addresses" : [
"Xcfme7cJDpWBgQE7Bsf71pPmse9YCjV2CF"
],
"p2sh" : "7i3t8jUJ7i2UAmqTs6PMvN8S3kofVUbrbg"
}
Can`t generate uncompress public key. Only compress.
from p2pool.dash import data, networks, sha256
from p2pool.util import pack
print data.pubkey_hash_to_script2(data.address_to_pubkey_hash('XpAy7r5RVdGLnnjWNKuB9EUDiJ5Tje9GZ8', networks.nets['dash'])).encode('hex') #76a91493eb5d3f266f2e0cd2468caffa5f6a933b2c0b8588ac
#darkcoind decodescript '76a91493eb5d3f266f2e0cd2468caffa5f6a933b2c0b8588ac'
#{
# "asm" : "OP_DUP OP_HASH160 93eb5d3f266f2e0cd2468caffa5f6a933b2c0b85 OP_EQUALVERIFY OP_CHECKSIG",
# "reqSigs" : 1,
# "type" : "pubkeyhash",
# "addresses" : [
# "XpAy7r5RVdGLnnjWNKuB9EUDiJ5Tje9GZ8"
# ],
# "p2sh" : "7if3tTT8rexwn1hP1JFCf1FefjermWPngY"
#}
Also I find https://github.com/Neisklar/p2pool-quarkcoin/blob/master/p2pool/data.py#L56-L66 https://bitcointalk.org/index.php?topic=18313.msg10613795#msg10613795
Also we need fix this too https://github.com/dashpay/p2pool-dash/blob/master/p2pool/dash/data.py#L13-L16
Let`s change give-author address to DASH software development donations address. XpAy7r5RVdGLnnjWNKuB9EUDiJ5Tje9GZ8
Find this code https://github.com/dashpay/p2pool-dash/blob/master/p2pool/data.py#L52