Am 31.01.2013 18:55, schrieb Peter Pearson:
txid =
'r7A7clvs9waizF+6QEiI0tgAq1ar48JItK3kg9kaeAFXz2vsMsHmOd9r9fhkmtxTz3CQnGAPMaDeKLvgb1A2VA'
secret =
'10812806653842663997bf5971637f86f26c71a4716276d7fa8f323a83588d91:1'
hashlib.sha256(txid+":"+secret).hexdigest()
> 'dfa8769
On Thursday, January 31, 2013 6:55:05 PM UTC+1, Peter Pearson wrote:
> On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote:
>
>
>
> > I'm wondering if anyone can help me as I can't seem to get
>
> > this to work. There is an online dice game that is
>
> > provably fair b
On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote:
> I'm wondering if anyone can help me as I can't seem to get
> this to work. There is an online dice game that is
> provably fair by calculating the 'dice roll' using using a
> sha256 hash calculated against my transaction
Ok, I'm still stuck! :(
I do however now think that I'm not supposed to use hmac here.
--
http://mail.python.org/mailman/listinfo/python-list