diff options
Diffstat (limited to 'core/api-common.rst')
-rw-r--r-- | core/api-common.rst | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/core/api-common.rst b/core/api-common.rst index 7e342cb0..6d023b16 100644 --- a/core/api-common.rst +++ b/core/api-common.rst @@ -24,6 +24,8 @@ Conventions for Taler RESTful APIs ================================== +.. contents:: Table of Contents + :local: ------------------------- HTTP Request and Response @@ -352,6 +354,14 @@ Integers // JavaScript numbers restricted to integers. type Integer = number; +Floats +^^^^^^ + +.. ts:def:: Float + + // JavaScript numbers. + type Float = number; + Ages ^^^^ @@ -543,7 +553,7 @@ Blinded coin // coin's `public EdDSA key <eddsa-coin-pub>`. interface RSACoinEnvelope { cipher: "RSA" | "RSA+age_restricted"; - rsa_blinded_planchet: string; // Crockford `Base32` encoded + rsa_blinded_planchet: BlindedRsaSignature; } .. ts:def:: CSCoinEnvelope @@ -567,6 +577,25 @@ Blinded coin type DenominationBlindingKeyP = string; +. _unblinded-coin: + +Unblinded coin +^^^^^^^^^^^^^^ + +.. ts:def:: UnblindedSignature + + // The type of a coin's unblinded signature depends on the cipher that was used + // for signing with a denomination key. + // Note that for now, only RSA is supported. + type UnblindedSignature = RsaUnblindedSignature; + +.. ts:def:: RsaUnblindedSignature + + interface RsaUnblindedSignature { + cipher: "RSA"; + rsa_signature: RsaSignature; + } + .. _signature: @@ -1024,7 +1053,7 @@ within the }; -.. _TALER_DepositRequestPS: +.. _taler_depositrequestps: .. sourcecode:: c |