diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-07-07 20:27:02 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-07-07 20:27:02 +0200 |
commit | 812afa3330b6049e1255ec97821eb1c8c11a1611 (patch) | |
tree | cbdc7de98ec125cbb485f2fe177f6ec9b6bdab26 /core | |
parent | 389330545c4e18cc37f88b6cff011302e7490b52 (diff) | |
download | docs-812afa3330b6049e1255ec97821eb1c8c11a1611.tar.gz docs-812afa3330b6049e1255ec97821eb1c8c11a1611.tar.bz2 docs-812afa3330b6049e1255ec97821eb1c8c11a1611.zip |
fix api types
Diffstat (limited to 'core')
-rw-r--r-- | core/api-taldir.rst | 14 |
1 files changed, 8 insertions, 6 deletions
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; |