summaryrefslogtreecommitdiff
path: root/core/api-common.rst
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-09 16:40:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-09 16:40:53 +0100
commit0e2f46a0b1e8016c34765816a3efb43a750df0ed (patch)
tree4a75d065f832dd54894578113a168e1c8de98264 /core/api-common.rst
parent130d7172843f345789f509040494bd0b27a43afe (diff)
downloaddocs-0e2f46a0b1e8016c34765816a3efb43a750df0ed.tar.gz
docs-0e2f46a0b1e8016c34765816a3efb43a750df0ed.tar.bz2
docs-0e2f46a0b1e8016c34765816a3efb43a750df0ed.zip
bank gateway API
Diffstat (limited to 'core/api-common.rst')
-rw-r--r--core/api-common.rst20
1 files changed, 19 insertions, 1 deletions
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
^^^^^^^^^^^^^