diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_crypto_lib.h | 17 | ||||
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 4 | 
2 files changed, 21 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index c4c439af..63fb56ce 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -2840,6 +2840,23 @@ TALER_wallet_econtract_upload_verify (  /** + * Verify a signature over encrypted contract. + * + * @param h_econtract hashed encrypted contract + * @param contract_pub public key for the DH-encryption + * @param purse_pub purse’s public key + * @param purse_sig the signature made with purpose #TALER_SIGNATURE_WALLET_PURSE_CREATE + * @return #GNUNET_OK if the signature is valid + */ +enum GNUNET_GenericReturnValue +TALER_wallet_econtract_upload_verify2 ( +  const struct GNUNET_HashCode *h_econtract, +  const struct TALER_ContractDiffiePublicP *contract_pub, +  const struct TALER_PurseContractPublicKeyP *purse_pub, +  const struct TALER_PurseContractSignatureP *purse_sig); + + +/**   * Sign a request to inquire about a purse's status.   *   * @param purse_priv key identifying the purse diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index a88f34b0..39417775 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -5037,6 +5037,7 @@ struct TALER_EXCHANGEDB_Plugin     * @param reserve_sig signature of the reserve affirming the merge     * @param partner_url URL of the partner exchange, can be NULL if the reserves lives with us     * @param reserve_pub public key of the reserve to credit +   * @param require_kyc true if we should check for KYC     * @param[out] no_partner set to true if @a partner_url is unknown     * @param[out] no_balance set to true if the @a purse_pub is not paid up yet     * @param[out] no_reserve set to true if the @a reserve_pub is not known @@ -5053,6 +5054,7 @@ struct TALER_EXCHANGEDB_Plugin      const struct TALER_ReserveSignatureP *reserve_sig,      const char *partner_url,      const struct TALER_ReservePublicKeyP *reserve_pub, +    bool require_kyc,      bool *no_partner,      bool *no_balance,      bool *no_reserve, @@ -5072,6 +5074,7 @@ struct TALER_EXCHANGEDB_Plugin     * @param reserve_sig signature of the reserve affirming the merge     * @param purse_fee amount to charge the reserve for the purse creation, NULL to use the quota     * @param reserve_pub public key of the reserve to credit +   * @param require_kyc true if we should check for KYC     * @param[out] in_conflict set to true if @a purse_pub was merged into a different reserve already     * @param[out] no_reserve set to true if @a reserve_pub is not a known reserve     * @param[out] no_kyc set to true if @a reserve_pub has not passed KYC checks @@ -5087,6 +5090,7 @@ struct TALER_EXCHANGEDB_Plugin      const struct TALER_ReserveSignatureP *reserve_sig,      const struct TALER_Amount *purse_fee,      const struct TALER_ReservePublicKeyP *reserve_pub, +    bool require_kyc,      bool *in_conflict,      bool *no_reserve,      bool *no_kyc,  | 
