summaryrefslogtreecommitdiff
path: root/src/json/json_pack.c
diff options
context:
space:
mode:
authorLucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch>2022-01-10 22:09:35 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:36:10 +0100
commitdaa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157 (patch)
tree1cfce5401b493dfd017608cbbb05ee91ab9b247b /src/json/json_pack.c
parent9c2aefaa515ce8d493bfe4de4eab9edc09d5447e (diff)
downloadexchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.tar.gz
exchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.tar.bz2
exchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.zip
implement spend
Diffstat (limited to 'src/json/json_pack.c')
-rw-r--r--src/json/json_pack.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index cc147c4c..8b056f34 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -98,14 +98,21 @@ TALER_JSON_pack_denom_sig (
switch (sig->cipher)
{
case TALER_DENOMINATION_RSA:
- ps.object
- = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_uint64 ("cipher",
- TALER_DENOMINATION_RSA),
- GNUNET_JSON_pack_rsa_signature ("rsa_signature",
- sig->details.rsa_signature));
+ ps.object = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_uint64 ("cipher",
+ TALER_DENOMINATION_RSA),
+ GNUNET_JSON_pack_rsa_signature ("rsa_signature",
+ sig->details.rsa_signature));
+ break;
+ case TALER_DENOMINATION_CS:
+ ps.object = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_uint64 ("cipher",
+ TALER_DENOMINATION_CS),
+ GNUNET_JSON_pack_data_auto ("cs_signature_r",
+ &sig->details.cs_signature.r_point),
+ GNUNET_JSON_pack_data_auto ("cs_signature_s",
+ &sig->details.cs_signature.s_scalar));
break;
- // TODO: case TALER_DENOMINATION_CS:
default:
GNUNET_assert (0);
}