diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-06-16 23:12:21 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-06-16 23:12:21 +0200 |
commit | 6680f9b4ef37db66880d774d7dc9f97e7d639f13 (patch) | |
tree | 4e76312792392226bf4a281c8d142d926aeac4b1 /src/include/taler_json_lib.h | |
parent | 9db945471f67b6063f86c6c5b91296d480f0cd80 (diff) |
implement logic to replace 'true' forgettable salts with random salts, fix object deletion when forgetting
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r-- | src/include/taler_json_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index bf8c22177..aefc28061 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -199,6 +199,19 @@ TALER_JSON_contract_hash (const json_t *json, /** + * Take a given contract with "forgettable" fields marked + * but with 'True' instead of a real salt. Replaces all + * 'True' values with proper random salts. Fails if any + * forgettable markers are neither 'True' nor valid salts. + * + * @param[in,out] json JSON to transform + * @return #GNUNET_OK on success + */ +int +TALER_JSON_contract_seed_forgettable (json_t *json); + + +/** * Mark part of a contract object as 'forgettable'. * * @param[in,out] json some JSON object to modify |