From 5c36361b04ea28bf18ac618891cd95930366decc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 28 Jan 2021 22:28:22 +0100 Subject: document suggestion to use timeflakes (#6716) --- core/api-merchant.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 25f7c154..a9c9d92e 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1334,6 +1334,8 @@ Reserving inventory interface LockRequest { // UUID that identifies the frontend performing the lock + // It is suggested that clients use a timeflake for this, + // see https://github.com/anthonynsimon/timeflake lock_uuid: UUID; // How long does the frontend intend to hold the lock @@ -1344,6 +1346,12 @@ Reserving inventory } + .. note:: + + The GNUNET_CRYPTO_random_timeflake() C API can be used + to generate such timeflakes for clients written in C. + + Removing products from inventory -------------------------------- -- cgit v1.2.3