diff options
author | Florian Dold <florian@dold.me> | 2021-01-10 23:59:11 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-10 23:59:11 +0100 |
commit | 57d7c988b3f333949d6b2c8da5585dc492932b57 (patch) | |
tree | 52e2f0c29eadeeb09ba36f4c46e5e08cb5a4ce11 /packages/taler-wallet-core/src | |
parent | c0dfcf247c0580b43a35824e5deb8bdf0a6b0c67 (diff) | |
download | wallet-core-57d7c988b3f333949d6b2c8da5585dc492932b57.tar.xz |
exchange protocol changes
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts | 1 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/types/ReserveTransaction.ts | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts index 9b703e2c8..d8045f726 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts @@ -533,7 +533,6 @@ export class CryptoImplementation { const coinEvHash = hash(decodeCrock(coinEv)); const coinLink = buildSigPS(SignaturePurpose.WALLET_COIN_LINK) .put(decodeCrock(newDenomHash)) - .put(decodeCrock(oldCoinPub)) .put(decodeCrock(transferPub)) .put(coinEvHash) .build(); diff --git a/packages/taler-wallet-core/src/types/ReserveTransaction.ts b/packages/taler-wallet-core/src/types/ReserveTransaction.ts index 75d01dff7..6847d8376 100644 --- a/packages/taler-wallet-core/src/types/ReserveTransaction.ts +++ b/packages/taler-wallet-core/src/types/ReserveTransaction.ts @@ -29,6 +29,7 @@ import { codecForConstString, buildCodecForUnion, Codec, + codecForNumber, } from "../util/codec"; import { AmountString, @@ -92,7 +93,7 @@ export interface ReserveCreditTransaction { /** * Transfer details uniquely identifying the transfer. */ - wire_reference: string; + wire_reference: number; /** * Timestamp of the incoming wire transfer. @@ -200,7 +201,7 @@ export const codecForReserveCreditTransaction = (): Codec< .property("amount", codecForString()) .property("sender_account_url", codecForString()) .property("timestamp", codecForTimestamp) - .property("wire_reference", codecForString()) + .property("wire_reference", codecForNumber()) .property("type", codecForConstString(ReserveTransactionType.Credit)) .build("ReserveCreditTransaction"); |