diff --git a/src/komodo_curve25519.h b/src/komodo_curve25519.h index 541e4447c..483c3e0d9 100644 --- a/src/komodo_curve25519.h +++ b/src/komodo_curve25519.h @@ -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); diff --git a/src/komodo_kv.h b/src/komodo_kv.h index 38ea99bc1..fede46e03 100644 --- a/src/komodo_kv.h +++ b/src/komodo_kv.h @@ -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);