Browse Source

test

metaverse
jl777 8 years ago
parent
commit
906d8629ed
  1. 2
      src/komodo_curve25519.h

2
src/komodo_curve25519.h

@ -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);

Loading…
Cancel
Save