Compute the SHA-256 hash of a scriptPubKey and write it into 'result'. * * Precondition: NULL != result; * NULL != scriptPubKey; */
| 17 | * NULL != scriptPubKey; |
| 18 | */ |
| 19 | static void hashBuffer(sha256_midstate* result, const rawBitcoinBuffer* buffer) { |
| 20 | sha256_context ctx = sha256_init(result->s); |
| 21 | sha256_uchars(&ctx, buffer->buf, buffer->len); |
| 22 | sha256_finalize(&ctx); |
| 23 | } |
| 24 | |
| 25 | /* Initialize a 'sigOutput' from a 'rawOutput', copying or hashing the data as needed. |
| 26 | * |
no test coverage detected