diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-10 17:00:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-10 17:00:12 +0100 |
commit | 7e26ae385896a974d8a90234a155c32b383e70f7 (patch) | |
tree | 1bbcf3e317744c9fa024bba5a6e46c84520dc9e5 /src/mint/taler-mint-httpd_responses.c | |
parent | e3b8f5117e8028f3183871ab0efb0c6f2ff959eb (diff) | |
download | exchange-7e26ae385896a974d8a90234a155c32b383e70f7.tar.gz exchange-7e26ae385896a974d8a90234a155c32b383e70f7.tar.bz2 exchange-7e26ae385896a974d8a90234a155c32b383e70f7.zip |
clean up refresh logic and use of signatures
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 83c81e800..2faeb5ca8 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -355,15 +355,16 @@ compile_transaction_history (const struct TALER_MINT_DB_TransactionList *tl) } case TALER_MINT_DB_TT_REFRESH_MELT: { - struct RefreshMeltSignatureBody ms; + struct RefreshMeltCoinSignature ms; const struct RefreshMelt *melt = pos->details.melt; type = "melt"; value = melt->amount; - ms.purpose.purpose = htonl (TALER_SIGNATURE_REFRESH_MELT); - ms.purpose.size = htonl (sizeof (struct RefreshMeltSignatureBody)); + ms.purpose.purpose = htonl (TALER_SIGNATURE_REFRESH_MELT_COIN); + ms.purpose.size = htonl (sizeof (struct RefreshMeltCoinSignature)); ms.melt_hash = melt->melt_hash; ms.amount = TALER_amount_hton (melt->amount); + ms.coin_pub = melt->coin.coin_pub; transaction = TALER_JSON_from_ecdsa_sig (&ms.purpose, &melt->coin_sig); } |