test
This commit is contained in:
@@ -964,7 +964,7 @@ int32_t komodo_kvsigverify(uint8_t *buf,int32_t len,uint256 pubkey,uint256 sig)
|
|||||||
{
|
{
|
||||||
bits256 hash,checksig;
|
bits256 hash,checksig;
|
||||||
vcalc_sha256(0,hash.bytes,buf,len);
|
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 )
|
if ( memcmp(&checksig,&sig,sizeof(sig)) != 0 )
|
||||||
return(-1);
|
return(-1);
|
||||||
else return(0);
|
else return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user