diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-21 12:57:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-21 12:57:33 +0100 |
commit | 95bd24916ed7baa7a6059c2a788e904bb5166606 (patch) | |
tree | 69c75971ad65fd1549002e3b911b559120d74190 /src/include | |
parent | b663c8a3c1c8f07f448fca5812543225a6d1c25a (diff) | |
download | exchange-95bd24916ed7baa7a6059c2a788e904bb5166606.tar.xz |
skeleton logic for POS confirmation
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 20ffaf0cd..1a3b40e4d 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -573,6 +573,20 @@ enum TALER_AmlDecisionState /** + * Possible algorithms for confirmation code generation. + */ +enum TALER_MerchantConfirmationAlgorithm +{ + + /** + * No purchase confirmation. + */ + TALER_MCA_NONE = 0 + +}; + + +/** * @brief Type of blinding keys for Taler. * must be 32 bytes (DB) */ @@ -915,6 +929,16 @@ GNUNET_NETWORK_STRUCT_END /** + * FIXME. + */ +char * +TALER_build_pos_confirmation (const char *pos_key, + enum TALER_MerchantConfirmationAlgorithm pos_alg, + const struct TALER_Amount *total, + struct GNUNET_TIME_Timestamp ts); + + +/** * Set of the fees applying to a denomination. */ struct TALER_DenomFeeSet |