summaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/CancellationToken.ts6
-rw-r--r--packages/taler-util/src/talerCrypto.ts7
2 files changed, 6 insertions, 7 deletions
diff --git a/packages/taler-util/src/CancellationToken.ts b/packages/taler-util/src/CancellationToken.ts
index 134805274..73c092b1d 100644
--- a/packages/taler-util/src/CancellationToken.ts
+++ b/packages/taler-util/src/CancellationToken.ts
@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-const NOOP = () => {};
+const NOOP = () => { };
/**
* A token that can be passed around to inform consumers of the token that a
@@ -136,7 +136,7 @@ class CancellationToken {
* Whether the token can be cancelled.
*/
private _canBeCancelled: boolean,
- ) {}
+ ) { }
/**
* Create a {CancellationTokenSource}.
@@ -260,7 +260,7 @@ namespace CancellationToken {
cancel(reason?: any): void;
/**
- * Dipose of the token and this source and release memory.
+ * Dispose of the token and this source and release memory.
*/
dispose(): void;
}
diff --git a/packages/taler-util/src/talerCrypto.ts b/packages/taler-util/src/talerCrypto.ts
index ebbfccda5..c6c1d79ee 100644
--- a/packages/taler-util/src/talerCrypto.ts
+++ b/packages/taler-util/src/talerCrypto.ts
@@ -560,7 +560,7 @@ export async function csUnblind(
* @param hm message signed
* @param csSig unblinded signature
* @param csPub denomination publick key
- * @returns true if valid, false if unvalid
+ * @returns true if valid, false if invalid
*/
export async function csVerify(
hm: Uint8Array,
@@ -679,8 +679,7 @@ export function hashDenomPub(pub: DenominationPubKey): Uint8Array {
return nacl.hash(uint8ArrayBuf);
} else {
throw Error(
- `unsupported cipher (${
- (pub as DenominationPubKey).cipher
+ `unsupported cipher (${(pub as DenominationPubKey).cipher
}), unable to hash`,
);
}
@@ -784,7 +783,7 @@ export enum TalerSignaturePurpose {
export class SignaturePurposeBuilder {
private chunks: Uint8Array[] = [];
- constructor(private purposeNum: number) {}
+ constructor(private purposeNum: number) { }
put(bytes: Uint8Array): SignaturePurposeBuilder {
this.chunks.push(Uint8Array.from(bytes));