mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
param: upgraded json_tok_pubkey
Also add json_to_pubkey as utility function. Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
committed by
Rusty Russell
parent
6254d15efd
commit
9b28ecf8fc
@@ -63,8 +63,12 @@ bool json_tok_sha256(struct command *cmd, const char *name,
|
||||
struct sha256 **hash);
|
||||
|
||||
/* Extract a pubkey from this */
|
||||
bool json_tok_pubkey(const char *buffer, const jsmntok_t *tok,
|
||||
struct pubkey *pubkey);
|
||||
bool json_to_pubkey(const char *buffer, const jsmntok_t *tok,
|
||||
struct pubkey *pubkey);
|
||||
|
||||
bool json_tok_pubkey(struct command *cmd, const char *name,
|
||||
const char *buffer, const jsmntok_t *tok,
|
||||
struct pubkey **pubkey);
|
||||
|
||||
/* Extract a short_channel_id from this */
|
||||
bool json_tok_short_channel_id(const char *buffer, const jsmntok_t *tok,
|
||||
|
||||
Reference in New Issue
Block a user