@ -960,7 +960,7 @@ uint256 komodo_kvsig(uint8_t *buf,int32_t len,uint256 privkey)
return(usig);
}
int32_t komodo_kvsigverify(uint8_t *buf,int32_t len,bits256 pubkey,bits256 sig)
int32_t komodo_kvsigverify(uint8_t *buf,int32_t len,uint256 pubkey,uint256 sig)
{
bits256 hash,checksig;
vcalc_sha256(0,hash.bytes,buf,len);
@ -144,7 +144,7 @@ void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value)
else if ( ptr == 0 )
ptr = (struct komodo_kv *)calloc(1,sizeof(*ptr));
ptr->pubkey = pubkey;
memcpy(&ptr->pubkey,&pubkey,sizeof(ptr->pubkey));
ptr->key = (uint8_t *)calloc(1,keylen);
ptr->keylen = keylen;
memcpy(ptr->key,key,keylen);