Txidseed
This commit is contained in:
@@ -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;
|
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);
|
memset(&hentropy,0,32);
|
||||||
ed25519_create_keypair(txidpub,txidpriv,txidseed);
|
ed25519_create_keypair(txidpub,txidpriv,(uint8_t *)txidseed);
|
||||||
Myprivkey(tmp256);
|
Myprivkey(tmp256);
|
||||||
vcalc_sha256(0,tmpseed,tmp256,32);
|
vcalc_sha256(0,tmpseed,tmp256,32);
|
||||||
ed25519_create_keypair(mypub,mypriv,tmpseed);
|
ed25519_create_keypair(mypub,mypriv,tmpseed);
|
||||||
|
|||||||
Reference in New Issue
Block a user