From 527d9036785a6d0482a9026b13262f2b8401db8e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Dec 2021 11:54:07 +0100 Subject: [PATCH] add new wrappers around merchant hash codes for tips and pickups --- src/include/taler_crypto_lib.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 5292cd09b..5895d1210 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -518,6 +518,30 @@ struct TALER_CoinPubHash }; +/** + * @brief Value that uniquely identifies a tip. + */ +struct TALER_TipIdentifierP +{ + /** + * The tip identifier is a SHA-512 hash code. + */ + struct GNUNET_HashCode hash; +}; + + +/** + * @brief Value that uniquely identifies a tip pick up operation. + */ +struct TALER_PickupIdentifierP +{ + /** + * The pickup identifier is a SHA-512 hash code. + */ + struct GNUNET_HashCode hash; +}; + + GNUNET_NETWORK_STRUCT_END