CScript opret; uint8_t evalcode = EVAL_MUSIG; opret << OP_RETURN << E_MARSHAL(ss << evalcode << funcid << combined_pk);

This commit is contained in:
jl777
2019-02-20 07:17:05 -11:00
parent f1d392b72c
commit 998a2cf173
2 changed files with 2 additions and 1 deletions

View File

@@ -525,7 +525,7 @@ cJSON *cclib_reparse(int32_t *nump,cJSON *origparams) // assumes origparams will
newstr[j++] = '"';
i += 2;
}
else if ( jsonstr[i] == ''' )
else if ( jsonstr[i] == '\'' )
newstr[j++] = '"';
else newstr[j++] = jsonstr[i];
}

View File

@@ -22,6 +22,7 @@
uint256 musig_msghash(uint256 prevhash,int32_t prevn,CTxOut vout,secp256k1_pubkey combined_pk)
{
CScript data;
std::vector<uint8_t> data; uint256 hash; int32_t len = 0;
data << E_MARSHAL(ss << prevhash << prevn << vout << combined_pk);
fprintf(stderr,"data size %d\n",(int32_t)data.size());