summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-05-20 12:31:27 +0200
committerChristian Grothoff <christian@grothoff.org>2021-05-20 12:31:27 +0200
commit4741f4ea02148ed1dede88affd83edd9a96e2680 (patch)
treebde9d1f98715cbd73ce4394545abd6e0252b6180 /src/include
parent259a180bb68bbc084cdb2f89887ecd165960f1f5 (diff)
downloadexchange-4741f4ea02148ed1dede88affd83edd9a96e2680.tar.gz
exchange-4741f4ea02148ed1dede88affd83edd9a96e2680.tar.bz2
exchange-4741f4ea02148ed1dede88affd83edd9a96e2680.zip
implement duplicate reserve_pub detection in fakebank, add test (fails in pybank), for #6863
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h13
-rw-r--r--src/include/taler_fakebank_lib.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 8d1bbec26..71579170a 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -592,6 +592,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
* is chosen by the exchange and has no particular semantics, other than
diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h
index bd4376695..abef2de52 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 (