MCPcopy Create free account
hub / github.com/ElementsProject/lightning / hash_u5_init

Function hash_u5_init

common/hash_u5.c:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <string.h>
5
6void hash_u5_init(struct hash_u5 *hu5, const char *hrp)
7{
8 hu5->buf = 0;
9 hu5->num_bits = 0;
10 sha256_init(&hu5->hash);
11 sha256_update(&hu5->hash, hrp, strlen(hrp));
12}
13
14void hash_u5(struct hash_u5 *hu5, const u8 *u5, size_t len)
15{

Callers 3

handle_sign_invoiceFunction · 0.85
bolt11_decode_nosigFunction · 0.85
test_signFunction · 0.85

Calls 2

sha256_initFunction · 0.85
sha256_updateFunction · 0.85

Tested by 1

test_signFunction · 0.68