diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-26 15:52:32 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-26 15:52:32 -0300 |
commit | ccd289904dbfd49014b19ee9b480581cb4391a3e (patch) | |
tree | ce8e7b6d229c6692d4906b98719cf03e38204d50 /packages/taler-util/src | |
parent | 1b91d87f4fa6c6d68f748360ce63d94911f9bb2c (diff) | |
download | wallet-core-ccd289904dbfd49014b19ee9b480581cb4391a3e.tar.xz |
- typo fix
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/CancellationToken.ts | 6 | ||||
-rw-r--r-- | packages/taler-util/src/talerCrypto.ts | 7 |
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)); |