← All Distributed Computing Projects

Distributed SHA-256 Prefix Nonce Scan

Task tsk_0005_hash_scan · Published by @ezmone · Category: Cryptographic Research · Status: OPEN

Searches partitioned 100,000-nonce ranges per chunk for SHA-256 digests with 16 leading zero bits, returning the first matching nonce or -1.

Task Progress (0%) 1388 / 250000 chunks
Verified Complexity Per Chunk 3,200,000 ops Working buffer memory: 8 B · Parallel / GPU-friendly
Code Integrity Digest (SHA-256) 199772f7edf6dfbf11a72d47e82aca185144d3be672e48ffdc011dd8b57a0426 Bound into every appliance built for this task.

Full Task Code Audit (Inspect Everything Before Accepting)

Before downloading any appliance, inspect the exact EZC v1 safe compute blocks written by @ezmone, our plain-English step-by-step summary, and the exact C source code compiled into the appliance. No hidden code, external libraries, shell commands, or network calls can be added.

Step-by-Step Plain-English Audit (3 verified operations)
  1. Declare float64 scalar match_nonce = -1
  2. Scan up to 100000 SHA-256 nonces for 16 leading zero bits into scalar match_nonce
  3. Emit verified deterministic result for match_nonce (SCALAR) back to ezmon-e
Exact EZC v1 Safe Block Source Code
SCALAR match_nonce -1
HASH_SCAN match_nonce 16 100000
EMIT match_nonce
Exact Compiled ANSI C99 Code (SHA-256: 1e5aaa9975108eaa0b3afedb27e9a6e0980d69c8a2a018c0227adca28b4d2da7)
/* Auto-generated by ezmon-e EZC v1 Safe Compute Compiler.
 * Zero syscalls, zero raw pointers, zero dynamic allocation, strictly bounded loops.
 * Source SHA-256: 199772f7edf6dfbf11a72d47e82aca185144d3be672e48ffdc011dd8b57a0426
 */
#include "ezc_runtime.h"

static double ezv_match_nonce = -1;

int ezc_run_chunk(uint64_t task_seed, uint64_t chunk_index, ezc_emit_ctx *emit) {
    ezv_match_nonce = -1;
    ezv_match_nonce = (double)ezc_hash_scan(task_seed, chunk_index, 16U, 100000U);
    ezc_emit_scalar(emit, ezv_match_nonce);
    return 0;
}
Included Safe Compute Header: ezc_runtime.h (SHA-256: eac06d7ca873dcace5bd54cdb5114c92385740b525f4aee68e7eb11d19ca4da0)

This is the exact C header included by #include "ezc_runtime.h" above, declaring every allowed EZC v1 operation signature and output structure. You can also view it directly as plain text at /compute/runtime/ezc_runtime.h.

#ifndef EZC_RUNTIME_H
#define EZC_RUNTIME_H

#include <stdint.h>
#include <stddef.h>

enum {
    EZC_MAP_ADD_CONST = 1,
    EZC_MAP_MUL_CONST = 2,
    EZC_MAP_ABS       = 3,
    EZC_MAP_SQRT_SAFE = 4,
    EZC_MAP_EXP_CLAMP = 5,
    EZC_MAP_LOG_SAFE  = 6,
    EZC_MAP_SIN       = 7,
    EZC_MAP_COS       = 8,
    EZC_MAP_TANH      = 9,
    EZC_MAP_RELU      = 10,
    EZC_MAP_SIGMOID   = 11,
    EZC_MAP_SQUARE    = 12,
    EZC_MAP_CLAMP01   = 13
};

enum {
    EZC_ZIP_ADD      = 1,
    EZC_ZIP_SUB      = 2,
    EZC_ZIP_MUL      = 3,
    EZC_ZIP_DIV_SAFE = 4,
    EZC_ZIP_MIN      = 5,
    EZC_ZIP_MAX      = 6
};

enum {
    EZC_RED_SUM     = 1,
    EZC_RED_MEAN    = 2,
    EZC_RED_MIN     = 3,
    EZC_RED_MAX     = 4,
    EZC_RED_L2_NORM = 5
};

enum {
    EZC_MC_PI_CIRCLE          = 1,
    EZC_MC_GAUSS_INTEGRAL     = 2,
    EZC_MC_BLACK_SCHOLES_CALL = 3,
    EZC_MC_ISING_ENERGY       = 4
};

typedef struct {
    uint32_t state[8];
    uint64_t bitlen;
    uint8_t  data[64];
    size_t   datalen;
} ezc_sha256_ctx;

typedef struct {
    ezc_sha256_ctx sha;
    int            emitted_count;
    double         last_summary;
} ezc_emit_ctx;

void    ezc_zero(double *dst, int n);
void    ezc_fill(double *dst, int n, double val);
void    ezc_load_chunk(double *dst, int n, uint64_t task_seed, uint64_t chunk_index, uint32_t salt);
void    ezc_map(double *dst, const double *src, int n, int op, double arg);
void    ezc_zip(double *dst, const double *a, const double *b, int n, int op);
void    ezc_matmul(double *dst, const double *a, const double *b, int m, int k, int n);
void    ezc_conv1d(double *dst, const double *src, int n, const double *kern, int kl);
void    ezc_fft_radix2(double *re, double *im, int n);
double  ezc_reduce(const double *src, int n, int op);
double  ezc_monte_carlo(uint64_t task_seed, uint64_t chunk_index, uint32_t salt, int samples, int mode);
int64_t ezc_prime_sieve(uint64_t chunk_index, uint32_t window);
int64_t ezc_hash_scan(uint64_t task_seed, uint64_t chunk_index, uint32_t leading_bits, uint32_t max_iters);
void    ezc_heapsort(double *a, int n);

void    ezc_emit_scalar(ezc_emit_ctx *ctx, double val);
void    ezc_emit_buffer(ezc_emit_ctx *ctx, const double *buf, int n);

/* Generated strictly by ezmon-e EZC v1 compiler (task_kernel.c) */
int     ezc_run_chunk(uint64_t task_seed, uint64_t chunk_index, ezc_emit_ctx *emit);

#endif /* EZC_RUNTIME_H */

Configure Resources & Build Your Personal Single-Task QEMU Appliance

Sign up free or log in so ezmon-e can build an appliance cryptographically bound to your @username and credit all verified compute sessions directly to your account.

Submit an Idea or Report a Bug

Short notes go straight to the ezmon-e operator panel. Thank you for helping improve the site.

Submission type