aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_signatures.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-12-22 11:26:10 +0100
committerFlorian Dold <florian.dold@gmail.com>2015-12-22 11:26:10 +0100
commit24bfedf04e2603b263e5c28ef94b45b2643e2ab2 (patch)
treefe34fb68e41519931815c6364103135b04342bb8 /src/include/taler_signatures.h
parentfdf51f8c73fadca9301f53fede630a43cc33091a (diff)
parent204f732c1a408490d6d13fa36b0635ce72fd4575 (diff)
Merge branch 'master' of ssh://taler.net/var/git/mint
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r--src/include/taler_signatures.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h
index ea9ed600..fb2916cf 100644
--- a/src/include/taler_signatures.h
+++ b/src/include/taler_signatures.h
@@ -843,6 +843,25 @@ struct TALER_DepositTrackPS
};
+/**
+ * The contract sent by the merchant to the wallet.
+ */
+struct TALER_ContractPS
+{
+ /**
+ * Purpose header for the signature over the contract with
+ * purpose #TALER_SIGNATURE_MERCHANT_CONTRACT.
+ */
+ struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+ /**
+ * Hash of the JSON contract in UTF-8 including 0-termination,
+ * using JSON_COMPACT | JSON_SORT_KEYS
+ */
+ struct GNUNET_HashCode h_contract;
+
+};
+
GNUNET_NETWORK_STRUCT_END