From a85ae5e93c4f3587b32e72c909115a328019f857 Mon Sep 17 00:00:00 2001 From: Dennis Neufeld Date: Wed, 28 Oct 2020 13:52:51 +0100 Subject: mod anastasis reducer api --- anastasis.rst | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) (limited to 'anastasis.rst') diff --git a/anastasis.rst b/anastasis.rst index 74d5160d..1e59a6b1 100644 --- a/anastasis.rst +++ b/anastasis.rst @@ -899,6 +899,84 @@ Backup Reducer The illustration above shows the different states the reducer can have during a backup process. +In the following, the individual transitions in the backup process will be specified in more detail. + +**select_continent:** + +Arguments (example): +:: + + { + "continent": "Europe" + } + + +**select_country:** + +Arguments (example): +:: + + { + "country": "Germany", + "country_code": "de", + "currency": "EUR" + } + + +**enter_user_attributes:** + +Arguments (example): +:: + + { + "identity_attributes": { + "full_name": "Max Musterman", + "social_security_number": "123456789", + "birth_year": "2000", + "birth_month": "01", + "birth_day": "01" + } + } + + +**add_policy:** + +Arguments (example): +:: + + { + "policy": [1, 3] //index of authentication method + } + + +**del_policy:** + +Arguments (example): +:: + + { + "policy": [1, 3] //index of authentication method + } + + +**enter_secret:** + +Arguments (example): +:: + + { + "secret": "someverysecretsecret", + "type": "password" + } + +- type: *password* (secret is a password or passphrase) +- type: *data* (secret must be a Crockford-Base32 encoded string of some data, e.g. a private key) + + +**next**, **back**, **pay:** + +No Arguments needed. + Recovery Reducer ^^^^^^^^^^^^^^^^ @@ -913,6 +991,70 @@ Recovery Reducer The illustration above shows the different states the reducer can have during a recovery process. +In the following, the individual transitions in the backup process will be specified in more detail. + +**select_continent:** + +Arguments (example): +:: + + { + "continent": "Europe" + } + + +**select_country:** + +Arguments (example): +:: + + { + "country": "Germany", + "country_code": "de", + "currency": "EUR" + } + + +**enter_user_attributes:** + +Arguments (example): +:: + + { + "identity_attributes": { + "full_name": "Max Musterman", + "social_security_number": "123456789", + "birth_year": "2000", + "birth_month": "01", + "birth_day": "01" + } + } + + +**select_challenge:** + +Arguments (example): +:: + + { + "challenge_index": 1 + } + + +**solve_challenge:** + +Arguments (example): +:: + + { + "challenge_index": 1, + "solution": "answer to secure question" + } + + +**back**, **pay:** + +No Arguments needed. .. _anastasis-auth-methods: -- cgit v1.2.3