This commit is contained in:
jl777
2017-01-22 14:11:18 +02:00
parent d65e157051
commit 906d8629ed

View File

@@ -964,7 +964,7 @@ int32_t komodo_kvsigverify(uint8_t *buf,int32_t len,uint256 pubkey,uint256 sig)
{
bits256 hash,checksig;
vcalc_sha256(0,hash.bytes,buf,len);
checksig = curve25519_shared(hash,pubkey);
checksig = curve25519_shared(hash,*(bits256 *)&pubkey);
if ( memcmp(&checksig,&sig,sizeof(sig)) != 0 )
return(-1);
else return(0);