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

Function input_data_str

common/codex32.c:148–157  ·  view source on GitHub ↗

Helper to input data strong of codex32 into the checksum engine. */

Source from the content-addressed store, hash-verified

146
147/* Helper to input data strong of codex32 into the checksum engine. */
148static void input_data_str(u8 *generator, u8 *residue, const char *datastr, size_t len)
149{
150 size_t i = 0;
151
152 for (i = 0; i < strlen(datastr); i++) {
153 input_fe(generator, residue, bech32_charset_rev[(int)datastr[i]], len);
154 }
155
156 return;
157}
158
159static void input_own_target(const u8 *generator, u8 *residue, const u8 *target, size_t len)
160{

Callers 2

checksum_verifyFunction · 0.85
calculate_checksumFunction · 0.85

Calls 1

input_feFunction · 0.85

Tested by

no test coverage detected