commit b17d803571ea185b032d43af0d2a25aa3d208397
parent 8dfa5ed2d3f188440c31541db26d68e8513ad693
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Sat, 25 May 2024 14:37:14 +0200
update donau api 2
Diffstat:
1 file changed, 9 insertions(+), 31 deletions(-)
diff --git a/core/api-donau.rst b/core/api-donau.rst
@@ -380,7 +380,7 @@ corresponding charity_id by the Donau.
.. ts:def:: RSABUDI
interface RSABUDI {
- cipher: "RSA" | "RSA+age_restricted";
+ cipher: "RSA";
rsa_blinded_udi: string; // Crockford Base32 encoded
}
@@ -391,7 +391,7 @@ corresponding charity_id by the Donau.
// blinded challenges in the Blinded Clause-Schnorr signature scheme.
// See https://taler.net/papers/cs-thesis.pdf for details.
interface CSBUDI {
- cipher: "CS" | "CS+age_restricted";
+ cipher: "CS";
cs_nonce: string; // Crockford Base32 encoded
cs_blinded_c0: string; // Crockford Base32 encoded
cs_blinded_c1: string; // Crockford Base32 encoded
@@ -410,8 +410,6 @@ corresponding charity_id by the Donau.
blind_signed_receipt_signatures: DonationReceiptSignature[];
}
- .. ts:def:: DonationReceiptSignature
-
.. ts:def:: BlindedDonationReceiptSignature
type BlindedDonationReceiptSignature =
@@ -441,25 +439,6 @@ corresponding charity_id by the Donau.
s: Cs25519Scalar;
}
-
- type DonationReceiptSignature = RSADonationReceiptSignature | CSDonationReceiptSignature ;
-
- .. ts:def:: RSADonationReceiptSignature
-
- interface RSADonationReceiptSignature {
- cipher: "RSA";
- rsa_blinded_donation_receipt_sig: string; // Crockford Base32 encoded
- }
-
- .. ts:def:: CSDonationReceiptSignature
-
- interface CSDonationReceiptSignature {
- cipher: "CS";
- cs_nonce: string; // Crockford Base32 encoded
- cs_blinded_c0: string; // Crockford Base32 encoded
- cs_blinded_c1: string; // Crockford Base32 encoded
- }
-
.. ts:def:: IssueError
interface IssueError{
@@ -526,26 +505,25 @@ Inspired by the Taler exchange :ref:`Deposit<deposit-par>`.
interface DonationReceipt{
h_donation_unit_pub: HashCode;
nonce: string;
- donation_unit_sig: DonationSignature
+ donation_unit_sig: DonationReceiptSignature
}
- .. ts:def:: DonationSignature
+ .. ts:def:: DonationReceiptSignature
- type DonationSignature =
- RsaDonationSignature | CSDonationSignature;
+ type DonationReceiptSignature = RSADonationReceiptSignature | CSDonationReceiptSignature ;
- .. ts:def:: RsaDonationSignature
+ .. ts:def:: RSADonationReceiptSignature
- interface RsaDonationSignature {
+ interface RSADonationReceiptSignature {
cipher: "RSA";
// RSA signature
rsa_signature: RsaSignature;
}
- .. ts:def:: CSDonationSignature
+ .. ts:def:: CSDonationReceiptSignature
- interface CSDonationSignature {
+ interface CSDonationReceiptSignature {
type: "CS";
// R value component of the signature.