ethereum/base/BREthereumHash.c
/**
 * Return the hex-encoded string
 */
Return the hex-encoded string
Return the hex - encoded string
extern char *
hashAsString (BREthereumHash hash) {
    char result [2 + 2 * ETHEREUM_HASH_BYTES + 1];
    result[0] = '0';
    result[1] = 'x';
    encodeHex(&result[2], 2 * ETHEREUM_HASH_BYTES + 1, hash.bytes, ETHEREUM_HASH_BYTES);
    return strdup (result);
}
extern char * hashAsString ( BREthereumHash hash ) { char result [ 2 + 2 * ETHEREUM_HASH_BYTES + 1 ] ; result [ 0 ] = ' ' ; result [ 1 ] = ' ' ; encodeHex ( & result [ 2 ] , 2 * ETHEREUM_HASH_BYTES + 1 , hash . bytes , ETHEREUM_HASH_BYTES ) ; return strdup ( result ) ; }
Return the hex-encoded string
Return the hex - encoded string