Fetches a 256-bit hash value from 'stream' into 'result'. * Returns 'SIMPLICITY_ERR_BITSTREAM_EOF' if not enough bits are available ('result' may be modified). * Returns 'SIMPLICITY_NO_ERROR' if successful. * * Precondition: NULL != result * NULL != stream */
| 34 | * NULL != stream |
| 35 | */ |
| 36 | static simplicity_err getHash(sha256_midstate* result, bitstream* stream) { |
| 37 | return getWord32Array(result->s, 8, stream); |
| 38 | } |
| 39 | |
| 40 | |
| 41 | /* Decode a single node of a Simplicity dag from 'stream' into 'dag'['i']. |
no test coverage detected