diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-13 09:53:34 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-13 09:53:34 +0100 |
commit | 3a074443b764bf38b24e5ff4ef7e81d6ba351a55 (patch) | |
tree | ca446bd585b1938c8258cbee074d6a2bb66a5808 /src/wxBackend.ts | |
parent | e2738c58233038895611a67f127ee605112c5e11 (diff) |
use EdDSA public key as nonce, store private key in DB
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index 50e068946..cdc8f4392 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -35,7 +35,7 @@ import * as logging from "./logging"; "use strict"; const DB_NAME = "taler"; -const DB_VERSION = 12; +const DB_VERSION = 14; import {Stores} from "./wallet"; import {Store, Index} from "./query"; @@ -102,6 +102,9 @@ function makeHandlers(db: IDBDatabase, const req = ConfirmReserveRequest.checked(d); return wallet.confirmReserve(req); }, + ["generate-nonce"]: function (detail, sender) { + return wallet.generateNonce(); + }, ["confirm-pay"]: function (detail, sender) { let offer: OfferRecord; try { |