Compute the SHA-256 hash of a scriptPubKey and write it into 'result'. * * Precondition: NULL != result; * NULL != scriptPubKey; */
| 18 | * NULL != scriptPubKey; |
| 19 | */ |
| 20 | static void hashBuffer(sha256_midstate* result, const rawElementsBuffer* buffer) { |
| 21 | sha256_context ctx = sha256_init(result->s); |
| 22 | sha256_uchars(&ctx, buffer->buf, buffer->len); |
| 23 | sha256_finalize(&ctx); |
| 24 | } |
| 25 | |
| 26 | /* Initialize a 'confidential' asset or 'confidential' nonce from an unsigned char array from a 'rawElementsTransaction'. |
| 27 | * |
no test coverage detected