diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-04 21:59:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-04 22:00:02 +0200 |
commit | a17781ba8d5f875b5150e524174c5f144aa6c0ba (patch) | |
tree | c01f11a3810428471e6399b4961942732a21a1f1 /src/include/taler_crypto_lib.h | |
parent | 6512456dc2559577867fdce1f7fe7f1b5a12291f (diff) | |
download | exchange-a17781ba8d5f875b5150e524174c5f144aa6c0ba.tar.xz |
-more work on p2p payments and tests thereof
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index c4c439af1..63fb56cee 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 |