exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit cb2c4c9c0e31ce01ce65082e38db1c2a2101b4d5
parent 002b4bf117c73ad6fca1731e23b6816a0d2800c2
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Fri, 26 Apr 2024 09:28:49 +0200

add empty implementations for merchant token sign / verify

Diffstat:
Msrc/util/merchant_signatures.c | 42++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+), 0 deletions(-)

diff --git a/src/util/merchant_signatures.c b/src/util/merchant_signatures.c @@ -349,4 +349,46 @@ TALER_merchant_contract_sign ( // NB: "TALER_merchant_contract_verify" not (yet?) needed / not defined. + +GNUNET_NETWORK_STRUCT_BEGIN + +/** + * Message blindly signed by merchant to issue a new token. + */ +struct TALER_TokenIssueRequestPS +{ + + // TODO: Implement this struct + +}; + +GNUNET_NETWORK_STRUCT_END + + +void +TALER_merchant_token_issue_sign ( + const struct TALER_TokenEnvelopeP *envelope, + const struct TALER_TokenIssuePrivateKeyP *issue_priv, + struct TALER_TokenIssueBlindSignatureP *blind_sig) +{ + +} + + +/** + * Verify a token issue signature. + * + * @param use_pub token use public key + * @param issue_pub token issue public key + * @param ub_sig unblinded signature + */ +enum GNUNET_GenericReturnValue +TALER_merchant_token_issue_verify ( + const struct TALER_TokenUsePublicKeyP *use_pub, + const struct TALER_TokenIssuePublicKeyP *issue_pub, + const struct TALER_TokenIssueSignatureP *ub_sig) +{ + return GNUNET_NO; +} + /* end of merchant_signatures.c */