From 812afa3330b6049e1255ec97821eb1c8c11a1611 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 7 Jul 2022 20:27:02 +0200 Subject: fix api types --- core/api-taldir.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/api-taldir.rst b/core/api-taldir.rst index 03212cc4..6ef9828a 100644 --- a/core/api-taldir.rst +++ b/core/api-taldir.rst @@ -103,7 +103,7 @@ Configuration information name: "taler-directory"; // Supported registration methods - methods: string; + methods: Method[]; // fee for one month of registration monthly_fee: Amount; @@ -128,6 +128,7 @@ Address registration Endpoint to register, extend or modify the registration for an address in the directory. Here, $METHOD is the type of address to register, e.g. "email", or "phone". + Supported methods are listed in the VersionResponse. **Request** @@ -137,8 +138,8 @@ Address registration // Address, in $METHOD-specific format address: string; - // Public key of the user to register - public_key: EddsaPublicKey; + // Public key of the user to register. As string in Crockfor base32 encoding. + public_key: string; // (HTTPS) endpoint URL for the inbox service. inbox_url: string; @@ -230,7 +231,8 @@ Address registration // chosen by TalDir (encoded as string just as given in the URL, but // excluding the 0-termination) concatenated with the binary 32-byte // value representing the wallet's EdDSA public key. - solution: HashCode; + // The hash is provided as string in Crockford base32 encoding. + solution: string; } @@ -271,8 +273,8 @@ Address lookup interface MailboxDetailResponse { - // Registered public key of the user - public_key: EddsaPublicKey; + // Registered public key of the user. As string in Crockford base32 encoding. + public_key: string; // (HTTPS) endpoint URL for the inbox service. inbox_url: string; -- cgit v1.2.3