From 1c8206f8c0c8921643aa1b070fbe6648411300fe Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 16:14:23 +0200 Subject: remove dead code and add comments --- src/cryptoWorker.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/cryptoWorker.ts') 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(); -- cgit v1.2.3