summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-04-11 19:22:30 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-04-11 19:22:30 +0200
commitb91a4065257e1df0a7f6d3f8bc1cbe91a57aac00 (patch)
tree93e9af6667cb896315811e9bac1fe73d66cce3fa /src/util
parent78cf27aaac2bb93d34c2418ccfad8f8eda364886 (diff)
downloadexchange-b91a4065257e1df0a7f6d3f8bc1cbe91a57aac00.tar.gz
exchange-b91a4065257e1df0a7f6d3f8bc1cbe91a57aac00.tar.bz2
exchange-b91a4065257e1df0a7f6d3f8bc1cbe91a57aac00.zip
-finish first implementaation of exchange_api_contracts_get.c
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto_contract.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/crypto_contract.c b/src/util/crypto_contract.c
index 026eec311..30fdec789 100644
--- a/src/util/crypto_contract.c
+++ b/src/util/crypto_contract.c
@@ -25,6 +25,20 @@
/**
+ * Different types of contracts supported.
+ */
+enum ContractFormats
+{
+ /**
+ * The encrypted contract represents a payment offer. The receiver
+ * can merge it into a reserve/account to accept the contract and
+ * obtain the payment.
+ */
+ TALER_EXCHANGE_CONTRACT_PAYMENT_OFFER = 0
+};
+
+
+/**
* Nonce used for encryption, 24 bytes.
*/
struct NonceP