From 509657bfef59221a6a113c49330ee06ed66c9da9 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sun, 17 Apr 2022 19:53:17 -0400 Subject: Add abstraction: TALER_merchant_contract_sign MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Additionally, this change removes ‘struct TALER_ProposalDataPS’ from the public API. * src/include/taler_crypto_lib.h (TALER_merchant_contract_sign): New func decl. * src/include/taler_signatures.h (struct TALER_ProposalDataPS): Delete. * src/util/merchant_signatures.c (struct TALER_ProposalDataPS): Move here from taler_signatures.h. (TALER_merchant_contract_sign): New func. --- src/include/taler_signatures.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/include/taler_signatures.h') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 249c01b6..0137ff65 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -422,25 +422,6 @@ struct TALER_DepositTrackPS }; -/** - * The contract sent by the merchant to the wallet. - */ -struct TALER_ProposalDataPS -{ - /** - * Purpose header for the signature over the proposal data - * 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 TALER_PrivateContractHashP hash; -}; - - GNUNET_NETWORK_STRUCT_END #endif -- cgit v1.2.3