From 6680f9b4ef37db66880d774d7dc9f97e7d639f13 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 16 Jun 2021 23:12:21 +0200 Subject: implement logic to replace 'true' forgettable salts with random salts, fix object deletion when forgetting --- src/include/taler_json_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index bf8c2217..aefc2806 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -198,6 +198,19 @@ TALER_JSON_contract_hash (const json_t *json, struct GNUNET_HashCode *hc); +/** + * 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'. * -- cgit v1.2.3