@MatthewLM
To get each candidate’s output and iterate over time (seconds) to find kernelHash that satisfies at least 110% of current difficulty, f.e. diff=15.
Sir mably agreed to participate w/ his beautiful output on address PBeH6YDAfFGm76HntPFi86Y6WkJ3rHxGqy with 20 PPCs from 2014-06-12!
https://bkchain.org/ppc/tx/592443855d30c754afeb495982ced8a02700fb4c65f1bca644173df95912d3a7 (second output)
I’ve added his input and output to coinstake, now it is
010000007221285403b068508d614cd0ebc709266d520b33354a1b8d849f811d01d26bc5ff27db71380200000000ffffffff833db1031d36a3fa69242888c9d26b1707f09fbfae72b6c0696f6ef05779341c0100000000ffffffffa7d31259f93d1744a6bcf1654cfb0027a0d8ce825949ebaf54c7305d854324590100000000ffffffff03000000000000000000a3dd7116000000001976a91471435ed5ef708e16656ae9c1a52156666d21a2d688ac40c93101000000001976a914217e95987cfae5a0de37143333399e473dc8f9b388ac00000000
{
"txid" : "edddcdf8b09188a40ddbb60e685e4c4ffb22d44df006512fb7c4a5ed2887f7fe",
"version" : 1,
"time" : 1411916146,
"locktime" : 0,
"vin" : [
{
"txid" : "3871db27ffc56bd2011d819f848d1b4a35330b526d2609c7ebd04c618d5068b0",
"vout" : 2,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "1c347957f06e6f69c0b672aebf9ff007176bd2c988282469faa3361d03b13d83",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "592443855d30c754afeb495982ced8a02700fb4c65f1bca644173df95912d3a7",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "",
"hex" : "",
"type" : "nonstandard"
}
},
{
"value" : 376.56105900,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 71435ed5ef708e16656ae9c1a52156666d21a2d6 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a91471435ed5ef708e16656ae9c1a52156666d21a2d688ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"PJv4DdZ1sFPiBXZEbj1gRmaFeQZWmB38wb"
]
}
},
{
"value" : 20.04000000,
"n" : 2,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 217e95987cfae5a0de37143333399e473dc8f9b3 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914217e95987cfae5a0de37143333399e473dc8f9b388ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"PBeH6YDAfFGm76HntPFi86Y6WkJ3rHxGqy"
]
}
}
]
}
To simplify calculations I resigned from my provision! Instead- mably’s reward is rounded down and he will have to pay 0.01 tx fee from his reward so after all cuts his output value is 20.04! 0.04 pure profit, 4 tx for free, lol.
What mably has to do is sign his part of coinstake.
Before any signing, he should verify transaction inputs/outputs:
decoderawtransaction PASTE_COINSTAKE_HEX
If it’s ok, he can sign it. Before he do this he’ll need to export his privkey for PBeH6YDAfFGm76HntPFi86Y6WkJ3rHxGqy.
dumpprivkey PBeH6YDAfFGm76HntPFi86Y6WkJ3rHxGqy
And
signrawtransaction PASTE_COINSTAKE_HEX [] ["PASTE_PRIV_KEY"] "SINGLE|ANYONECANPAY"
He should send me hex result of signing. His coins are safe.
Edit: he should also decode signed hex once more to see if his key was used with correct inputs - there should be only one ScriptSig in decoded tx!
Next person who want to participate doesn’t have to wait for mably to sign his part, he can post me his output and after adding input/output to coinstake participants can sign their inputs asynchronously.
Cheers