diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-12 16:44:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-12 16:44:28 +0200 |
commit | 00350bc228af8f79df56df13aa10e5f86de5a5a5 (patch) | |
tree | dedbcc779a7bc63fb1152ff350d6f59a7c4fcd05 /src/lib/exchange_api_link.c | |
parent | d28f18f2403d623d29ff4c9e69d3b99f7d4208b0 (diff) | |
download | exchange-00350bc228af8f79df56df13aa10e5f86de5a5a5.tar.xz |
remove c_hash from planchet detail where it does not logically belong
Diffstat (limited to 'src/lib/exchange_api_link.c')
-rw-r--r-- | src/lib/exchange_api_link.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/exchange_api_link.c b/src/lib/exchange_api_link.c index f933edd95..ad0ad85dc 100644 --- a/src/lib/exchange_api_link.c +++ b/src/lib/exchange_api_link.c @@ -128,18 +128,21 @@ parse_link_coin (const struct TALER_EXCHANGE_LinkHandle *lh, rpub); /* verify link_sig */ { - struct TALER_LinkDataPS ldp; struct TALER_PlanchetDetail pd; + struct GNUNET_HashCode c_hash; + struct TALER_LinkDataPS ldp = { + .purpose.size = htonl (sizeof (ldp)), + .purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_LINK), + .transfer_pub = *trans_pub + }; - ldp.purpose.size = htonl (sizeof (ldp)); - ldp.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_LINK); GNUNET_CRYPTO_eddsa_key_get_public (&lh->coin_priv.eddsa_priv, &ldp.old_coin_pub.eddsa_pub); - ldp.transfer_pub = *trans_pub; pub->rsa_public_key = rpub; if (GNUNET_OK != TALER_planchet_prepare (pub, &fc, + &c_hash, &pd)) { GNUNET_break (0); |