diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-18 16:01:47 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-18 16:02:16 -0300 |
commit | d1980c39fc2cf5054cfa9d3a03d685d75c2662d9 (patch) | |
tree | 3a605a565f975168bab6e67d1c1740bdd4310c79 /packages/taler-wallet-core/src/crypto | |
parent | 23bb82f00cc83541527402bdd2d4309c530df674 (diff) | |
download | wallet-core-d1980c39fc2cf5054cfa9d3a03d685d75c2662d9.tar.xz |
moved wireInfo and denomInfo into taler-util so it can be used from the ui
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts index edb9cdccb..099bf09fe 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts @@ -76,11 +76,12 @@ import { TalerProtocolTimestamp, TalerSignaturePurpose, UnblindedSignature, + WireFee, WithdrawalPlanchet, } from "@gnu-taler/taler-util"; import bigint from "big-integer"; // FIXME: Crypto should not use DB Types! -import { DenominationRecord, WireFee } from "../db.js"; +import { DenominationRecord } from "../db.js"; import { CreateRecoupRefreshReqRequest, CreateRecoupReqRequest, @@ -1045,10 +1046,10 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { }; if (depositInfo.requiredMinimumAge != null) { - s.minimum_age_sig = minimumAgeSig; - s.age_commitment = depositInfo.ageCommitmentProof?.commitment.publicKeys; + s.minimum_age_sig = minimumAgeSig; + s.age_commitment = depositInfo.ageCommitmentProof?.commitment.publicKeys; } else if (depositInfo.ageCommitmentProof) { - (s as any).h_age_commitment = hAgeCommitment; + (s as any).h_age_commitment = hAgeCommitment; } return s; |