diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:14:23 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:14:23 +0200 |
commit | 1c8206f8c0c8921643aa1b070fbe6648411300fe (patch) | |
tree | 1ee523e701fa369d0290d14e50a6f0b3cb5fb50f /src/cryptoWorker.ts | |
parent | fc53a08bb0ffaf2bd49408f50701f17cdd603fb9 (diff) | |
download | wallet-core-1c8206f8c0c8921643aa1b070fbe6648411300fe.tar.xz |
remove dead code and add comments
Diffstat (limited to 'src/cryptoWorker.ts')
-rw-r--r-- | src/cryptoWorker.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cryptoWorker.ts b/src/cryptoWorker.ts index aab7d3343..bf802a32b 100644 --- a/src/cryptoWorker.ts +++ b/src/cryptoWorker.ts @@ -16,11 +16,12 @@ /** * Web worker for crypto operations. - * @author Florian Dold */ -"use strict"; +/** + * Imports. + */ import * as native from "./emscriptif"; import { PreCoinRecord, @@ -386,6 +387,9 @@ namespace RpcFunctions { return refreshSession; } + /** + * Hash a string including the zero terminator. + */ export function hashString(str: string): string { const b = native.ByteArray.fromStringWithNull(str); return b.hash().toCrock(); |