From 4741f4ea02148ed1dede88affd83edd9a96e2680 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 May 2021 12:31:27 +0200 Subject: implement duplicate reserve_pub detection in fakebank, add test (fails in pybank), for #6863 --- src/include/taler_crypto_lib.h | 13 +++++++++++++ src/include/taler_fakebank_lib.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 8d1bbec2..71579170 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -591,6 +591,19 @@ struct TALER_WireTransferIdentifierRawP }; +/** + * Raw value of a wire transfer subject for a wad. + */ +struct TALER_WadIdentifierP +{ + + /** + * Wad identifier, in binary encoding. + */ + uint8_t raw[24]; +}; + + /** * Binary information encoded in Crockford's Base32 in wire transfer * subjects of transfers from Taler to a merchant. The actual value diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h index bd437669..abef2de5 100644 --- a/src/include/taler_fakebank_lib.h +++ b/src/include/taler_fakebank_lib.h @@ -99,7 +99,7 @@ TALER_FAKEBANK_make_transfer ( * @param credit_account account to credit * @param amount amount to transfer * @param reserve_pub reserve public key to use in subject - * @return serial_id of the transfer + * @return serial_id of the transfer, 0 on error */ uint64_t TALER_FAKEBANK_make_admin_transfer ( -- cgit v1.2.3