summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/types/dbTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-15 17:12:22 +0100
committerFlorian Dold <florian@dold.me>2020-12-15 17:12:22 +0100
commitc09c5bbe625566fc61c811160d2ccdab263327fa (patch)
tree4ce80e615bad8cf325b1b31aac957c6ce1ee0f05 /packages/taler-wallet-core/src/types/dbTypes.ts
parentf332d61fb68fbc394f31337ddeb7d1fc114772d0 (diff)
downloadwallet-core-c09c5bbe625566fc61c811160d2ccdab263327fa.tar.gz
wallet-core-c09c5bbe625566fc61c811160d2ccdab263327fa.tar.bz2
wallet-core-c09c5bbe625566fc61c811160d2ccdab263327fa.zip
derive tipping planchets from seed, implement backup further
Diffstat (limited to 'packages/taler-wallet-core/src/types/dbTypes.ts')
-rw-r--r--packages/taler-wallet-core/src/types/dbTypes.ts52
1 files changed, 27 insertions, 25 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts
index 18a1102b4..3a42b8dbc 100644
--- a/packages/taler-wallet-core/src/types/dbTypes.ts
+++ b/packages/taler-wallet-core/src/types/dbTypes.ts
@@ -109,14 +109,6 @@ export interface WalletReserveHistoryCreditItem {
export interface WalletReserveHistoryWithdrawItem {
expectedAmount?: AmountJson;
- /**
- * Hash of the blinded coin.
- *
- * When this value is set, it indicates that a withdrawal is active
- * in the wallet for the
- */
- expectedCoinEvHash?: string;
-
type: WalletReserveHistoryItemType.Withdraw;
/**
@@ -921,11 +913,9 @@ export interface TipRecord {
merchantBaseUrl: string;
/**
- * Planchets, the members included in TipPlanchetDetail will be sent to the
- * merchant.
+ * Denomination selection made by the wallet for picking up
+ * this tip.
*/
- planchets?: TipPlanchet[];
-
denomsSel: DenomSelectionState;
/**
@@ -934,6 +924,11 @@ export interface TipRecord {
walletTipId: string;
/**
+ * Secret seed used to derive planchets for this tip.
+ */
+ secretSeed: string;
+
+ /**
* The merchant's identifier for this tip.
*/
merchantTipId: string;
@@ -984,6 +979,8 @@ export interface RefreshGroupRecord {
*/
finishedPerCoin: boolean[];
+ timestampCreated: Timestamp;
+
/**
* Timestamp when the refresh session finished.
*/
@@ -1024,19 +1021,6 @@ export interface RefreshSessionRecord {
}
/**
- * Tipping planchet stored in the database.
- */
-export interface TipPlanchet {
- blindingKey: string;
- coinEv: string;
- coinPriv: string;
- coinPub: string;
- coinValue: AmountJson;
- denomPubHash: string;
- denomPub: string;
-}
-
-/**
* Wire fee for one wire method as stored in the
* wallet's database.
*/
@@ -1106,6 +1090,7 @@ export interface WalletRefundItemCommon {
obtainedTime: Timestamp;
refundAmount: AmountJson;
+
refundFee: AmountJson;
/**
@@ -1116,6 +1101,10 @@ export interface WalletRefundItemCommon {
* coin are refreshed in the same refresh operation.
*/
totalRefreshCostBound: AmountJson;
+
+ coinPub: string;
+
+ rtransactionId: number;
}
/**
@@ -1267,10 +1256,23 @@ export interface PurchaseRecord {
proposalId: string;
/**
+ * Private key for the nonce.
+ */
+ noncePriv: string;
+
+ /**
+ * Public key for the nonce.
+ */
+ noncePub: string;
+
+ /**
* Contract terms we got from the merchant.
*/
contractTermsRaw: string;
+ /**
+ * Parsed contract terms.
+ */
contractData: WalletContractData;
/**