diff --git a/src/cryptoconditions/src/cryptoconditions.c b/src/cryptoconditions/src/cryptoconditions.c index 1aae52c9b..12f973b97 100644 --- a/src/cryptoconditions/src/cryptoconditions.c +++ b/src/cryptoconditions/src/cryptoconditions.c @@ -272,12 +272,13 @@ int cc_verify(const struct CC *cond, const unsigned char *msg, size_t msgLength, unsigned char msgHash[32]; if (doHashMsg) sha256(msg, msgLength, msgHash); 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)) { - int32_t z; - for (z=0; z<32; z++) - fprintf(stderr,"%02x",msgHash[z]); - fprintf(stderr," msgHash, cc_verify error C\n"); + fprintf(stderr," cc_verify error C\n"); return 0; }