gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-anastasis] branch master updated: Added api for obta


From: gnunet
Subject: [GNUnet-SVN] [taler-anastasis] branch master updated: Added api for obtaining the terms of service
Date: Fri, 06 Sep 2019 16:34:15 +0200

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new bb9f4ff  Added api for obtaining the terms of service
bb9f4ff is described below

commit bb9f4ff30889c8c52d19e4b946d34a8a2bb0e504
Author: Dennis Neufeld <address@hidden>
AuthorDate: Fri Sep 6 16:33:56 2019 +0200

    Added api for obtaining the terms of service
---
 src/api/api-anastasis.rst | 57 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 56 insertions(+), 1 deletion(-)

diff --git a/src/api/api-anastasis.rst b/src/api/api-anastasis.rst
index 0ae0c78..eba3ff7 100644
--- a/src/api/api-anastasis.rst
+++ b/src/api/api-anastasis.rst
@@ -106,6 +106,48 @@ Obtain salt
       server_salt: string;
     }
 
+.. _terms:
+
+--------------------------
+Receiving Terms of Service
+--------------------------
+
+.. http:get:: /terms
+
+  Obtain the terms of service provided by the escrow provider.
+
+  **Response:**
+
+  Returns a `SyncTermsOfServiceResponse`_.
+
+  .. _SyncTermsOfServiceResponse:
+  .. _tsref-type-SyncTermsOfServiceResponse:
+  .. code-block:: tsref
+
+    interface SyncTermsOfServiceResponse {
+      // maximum key database backup size supported
+      storage_limit_in_kilobytes: number;
+
+      // maximum number of sync requests per day (per account)
+      daily_sync_limit: number;
+
+      // minimum supported protocol version
+      min_version: number;
+
+      // maximum supported protocol version
+      max_version: number;
+
+      // supported authentication methods
+      auth_methods: string[];
+
+      // how long the service expire the deposited truth?
+      truth_expiration: relative-time;
+
+      // Fee for an account, per year.
+      annual_fee: Amount;
+
+    }
+
 .. _escrow:
 
 -------------
@@ -416,7 +458,7 @@ argument and signature may be optional.
 
   .. _KeyShare:
   .. code-block:: tsref
-  
+
     interface KeyShare {
       // Key material to concatenate with policy_salt and KDF to derive
       // the key to decrypt the master key.
@@ -427,4 +469,17 @@ argument and signature may be optional.
 
     }
 
+  .. _EscrowChallenge:
+  .. code-block:: tsref
+
+    interface EscrowChallenge {
+      // ground truth, i.e. challenge question,
+      // phone number, e-mail address, picture, fingerprint, ...
+      truth: byte[];
+
+      // mime type of truth, i.e. text/ascii, image/jpeg, etc.
+      truth_mime: string;
+
+    }
+
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]