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

Function json_to_pubkey

common/json_parse.c:538–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538bool json_to_pubkey(const char *buffer, const jsmntok_t *tok,
539 struct pubkey *pubkey)
540{
541 return pubkey_from_hexstr(buffer + tok->start,
542 tok->end - tok->start, pubkey);
543}
544
545bool json_to_msat(const char *buffer, const jsmntok_t *tok,
546 struct amount_msat *msat)

Callers 5

param_hops_arrayFunction · 0.70
param_pubkeyFunction · 0.70
param_pubkeysFunction · 0.50
runtestFunction · 0.50

Calls 1

pubkey_from_hexstrFunction · 0.85

Tested by

no test coverage detected