diff options
| author | Christian Grothoff <christian@grothoff.org> | 2015-11-25 13:37:38 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2015-11-25 13:37:38 +0100 | 
| commit | c5204d3a213fb70d10ec873fc869013390a5435f (patch) | |
| tree | 28386b1f9f06161c9d06fd3e77817cdc233ee1d4 /src/include/taler_signatures.h | |
| parent | ea27c569209d7b9d04e965ef070ad6a744f76f2d (diff) | |
add contract structure from Merchant
Diffstat (limited to 'src/include/taler_signatures.h')
| -rw-r--r-- | src/include/taler_signatures.h | 19 | 
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  | 
