aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_signatures.h
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2022-04-17 04:53:17 -0400
committerThien-Thi Nguyen <ttn@gnuvola.org>2022-04-17 04:53:17 -0400
commita7ad5a07e2eb80d942fcfd49a41330146ec36e45 (patch)
treecd31aaf48d89d6a894f8040a2095771258610cf0 /src/include/taler_signatures.h
parentba69c32712344a7483641d3f5c010672ab1e32e6 (diff)
Add abstractions: TALER_merchant_pay_{sign,verify}
Additionally, this change removes ‘struct TALER_PaymentResponsePS’ from the public API. * src/include/taler_crypto_lib.h (TALER_merchant_pay_sign): New func decl. (TALER_merchant_pay_verify): New func decl. * src/include/taler_signatures.h (struct TALER_PaymentResponsePS): Delete. * src/util/merchant_signatures.c (struct TALER_PaymentResponsePS): Move here from taler_signatures.h. (TALER_merchant_pay_sign): New func. (TALER_merchant_pay_verify): New func.
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r--src/include/taler_signatures.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h
index 45bdca59..249c01b6 100644
--- a/src/include/taler_signatures.h
+++ b/src/include/taler_signatures.h
@@ -440,24 +440,6 @@ struct TALER_ProposalDataPS
struct TALER_PrivateContractHashP hash;
};
-/**
- * Used by merchants to return signed responses to /pay requests.
- * Currently only used to return 200 OK signed responses.
- */
-struct TALER_PaymentResponsePS
-{
- /**
- * Set to #TALER_SIGNATURE_MERCHANT_PAYMENT_OK. Note that
- * unsuccessful payments are usually proven by some exchange's signature.
- */
- struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
-
- /**
- * Hash of the proposal data associated with this confirmation
- */
- struct TALER_PrivateContractHashP h_contract_terms;
-};
-
GNUNET_NETWORK_STRUCT_END