diff options
Diffstat (limited to 'src/json/json.c')
-rw-r--r-- | src/json/json.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/json/json.c b/src/json/json.c index 2dfabbf96..62dec7189 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -837,4 +837,15 @@ TALER_JSON_get_error_code2 (const void *data, } +void +TALER_deposit_extension_hash (const json_t *extensions, + struct TALER_ExtensionContractHash *ech) +{ + GNUNET_assert (GNUNET_OK == + dump_and_hash (extensions, + "taler-contract-extensions", + &ech->hash)); +} + + /* End of json/json.c */ |