This commit is contained in:
@@ -272,12 +272,13 @@ int cc_verify(const struct CC *cond, const unsigned char *msg, size_t msgLength,
|
|||||||
unsigned char msgHash[32];
|
unsigned char msgHash[32];
|
||||||
if (doHashMsg) sha256(msg, msgLength, msgHash);
|
if (doHashMsg) sha256(msg, msgLength, msgHash);
|
||||||
else memcpy(msgHash, msg, 32);
|
else memcpy(msgHash, msg, 32);
|
||||||
|
int32_t z;
|
||||||
|
for (z=0; z<32; z++)
|
||||||
|
fprintf(stderr,"%02x",msgHash[z]);
|
||||||
|
fprintf(stderr," msgHash msglen.%d\n",msgLength);
|
||||||
|
|
||||||
if (!cc_secp256k1VerifyTreeMsg32(cond, msgHash)) {
|
if (!cc_secp256k1VerifyTreeMsg32(cond, msgHash)) {
|
||||||
int32_t z;
|
fprintf(stderr," cc_verify error C\n");
|
||||||
for (z=0; z<32; z++)
|
|
||||||
fprintf(stderr,"%02x",msgHash[z]);
|
|
||||||
fprintf(stderr," msgHash, cc_verify error C\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user