From 0e2f46a0b1e8016c34765816a3efb43a750df0ed Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 9 Jan 2020 16:40:53 +0100 Subject: bank gateway API --- core/api-common.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'core/api-common.rst') diff --git a/core/api-common.rst b/core/api-common.rst index 417ffac5..f084c456 100644 --- a/core/api-common.rst +++ b/core/api-common.rst @@ -129,13 +129,31 @@ resulting encoding. Hash codes ^^^^^^^^^^ -Hashcodes are strings representing base32 encoding of the respective hashed +Hash codes are strings representing base32 encoding of the respective hashed data. See `base32`_. .. ts:def:: HashCode + // 64-byte hash code type HashCode = string; +.. ts:def:: ShortHashCode + + // 32-byte hash code + type HashCode = string; + +Safe Integers +^^^^^^^^^^^^^ + +For easier browser-side processing, we restrict some integers to +the range that is safely representable in JavaScript. + +.. ts:def:: SafeUint64 + + // Subset of numbers: Integers in the + // inclusive range 0 .. (2^53 - 1) + type SafeUint64 = number; + Large numbers ^^^^^^^^^^^^^ -- cgit v1.2.3