This commit is contained in:
jl777
2018-07-29 21:49:56 -11:00
parent 2e124d5618
commit ff96162112

View File

@@ -34,7 +34,7 @@ uint256 DiceHashEntropy(uint256 &entropy,uint256 txidseed) // assumes little end
{
int32_t i; uint8_t tmp256[32],tmpseed[32],txidpub[32],txidpriv[32],mypriv[32],mypub[32],myseed[32],ssecret[32],ssecret2[32]; uint256 hentropy;
memset(&hentropy,0,32);
ed25519_create_keypair(txidpub,txidpriv,txidseed);
ed25519_create_keypair(txidpub,txidpriv,(uint8_t *)txidseed);
Myprivkey(tmp256);
vcalc_sha256(0,tmpseed,tmp256,32);
ed25519_create_keypair(mypub,mypriv,tmpseed);