summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-03-01 23:35:42 +0100
committerChristian Grothoff <christian@grothoff.org>2022-03-01 23:35:42 +0100
commit81311476b804c054e4ee19c9b182f3b34357f88f (patch)
tree85d0d2075d7289acea65fa7d038ef464469b3a9f /src/include
parentac6d31729594372c193a61e9e810516e4895037c (diff)
downloadanastasis-81311476b804c054e4ee19c9b182f3b34357f88f.tar.gz
anastasis-81311476b804c054e4ee19c9b182f3b34357f88f.tar.bz2
anastasis-81311476b804c054e4ee19c9b182f3b34357f88f.zip
-first rough cut client implementation of the new /truth/ APIs
Diffstat (limited to 'src/include')
-rw-r--r--src/include/anastasis_service.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/include/anastasis_service.h b/src/include/anastasis_service.h
index dc0fb12..c21cde5 100644
--- a/src/include/anastasis_service.h
+++ b/src/include/anastasis_service.h
@@ -866,6 +866,11 @@ struct ANASTASIS_TruthChallengeDetails
enum TALER_ErrorCode ec;
/**
+ * Full response in JSON, if provided.
+ */
+ const json_t *response;
+
+ /**
* Details depending on @e http_status.
*/
union
@@ -944,6 +949,12 @@ struct ANASTASIS_TruthChallengeDetails
* The payment secret (aka order ID) extracted from the @e payment_request.
*/
struct ANASTASIS_PaymentSecretP ps;
+
+ /**
+ * Data extracted from the payto:// URI.
+ */
+ const struct TALER_MERCHANT_PayUriData *pd;
+
} payment_required;
} details;
@@ -988,7 +999,7 @@ ANASTASIS_truth_challenge (
const struct ANASTASIS_CRYPTO_TruthUUIDP *truth_uuid,
const struct ANASTASIS_CRYPTO_TruthKeyP *truth_key,
const struct ANASTASIS_PaymentSecretP *payment_secret,
- ANASTASIS_KeyShareLookupCallback cb,
+ ANASTASIS_TruthChallengeCallback cb,
void *cb_cls);
@@ -1052,6 +1063,12 @@ struct ANASTASIS_TruthSolveReply
* The payment secret (aka order ID) extracted from the @e payment_request.
*/
struct ANASTASIS_PaymentSecretP ps;
+
+ /**
+ * Data extracted from the payto:// URI.
+ */
+ const struct TALER_MERCHANT_PayUriData *pd;
+
} payment_required;
/**
@@ -1119,7 +1136,7 @@ ANASTASIS_truth_solve (
const struct ANASTASIS_PaymentSecretP *payment_secret,
struct GNUNET_TIME_Relative timeout,
const struct GNUNET_HashCode *hashed_answer,
- ANASTASIS_KeyShareLookupCallback cb,
+ ANASTASIS_TruthSolveCallback cb,
void *cb_cls);