From efc9498fe786b948efe315bb8f36d5c6c5fb3163 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 23 Jul 2020 14:03:16 +0200 Subject: [PATCH] Fix a bunch of typos in comments --- packages/sdk38/src/secp256k1wallet.ts | 10 +++++----- packages/sdk38/types/secp256k1wallet.d.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/sdk38/src/secp256k1wallet.ts b/packages/sdk38/src/secp256k1wallet.ts index ab50b477..0594dd75 100644 --- a/packages/sdk38/src/secp256k1wallet.ts +++ b/packages/sdk38/src/secp256k1wallet.ts @@ -54,7 +54,7 @@ const algorithmIdXchacha20poly1305Ietf = "xchacha20poly1305-ietf"; export interface Secp256k1WalletSerialization { /** A format+version identifier for this serialization format */ readonly type: string; - /** Information about the key derivation function (i.e. password to encrytion key) */ + /** Information about the key derivation function (i.e. password to encryption key) */ readonly kdf: KdfConfiguration; /** Information about the symmetric encryption */ readonly encryption: { @@ -212,7 +212,7 @@ export class Secp256k1Wallet implements OfflineSigner { /** Base secret */ private readonly secret: EnglishMnemonic; - /** Derivation instrations */ + /** Derivation instruction */ private readonly accounts: ReadonlyArray<{ readonly algo: Algo; readonly hdPath: readonly Slip10RawIndex[]; @@ -288,10 +288,10 @@ export class Secp256k1Wallet implements OfflineSigner { /** * Generates an encrypted serialization of this wallet. * - * This is an advanced alternative of calling `serialize(password)` directly, which allows you to - * offload the KDF execution to an non-UI thread (e.g. in a WebWorker). + * This is an advanced alternative to calling `serialize(password)` directly, which allows you to + * offload the KDF execution to a non-UI thread (e.g. in a WebWorker). * - * The caller is responsible for ensuring the key was derived with the given kdf options. If this + * The caller is responsible for ensuring the key was derived with the given KDF options. If this * is not the case, the wallet cannot be restored with the original password. */ public async serializeWithEncryptionKey( diff --git a/packages/sdk38/types/secp256k1wallet.d.ts b/packages/sdk38/types/secp256k1wallet.d.ts index e0020657..3bd3548a 100644 --- a/packages/sdk38/types/secp256k1wallet.d.ts +++ b/packages/sdk38/types/secp256k1wallet.d.ts @@ -8,7 +8,7 @@ import { AccountData, KdfConfiguration, OfflineSigner, PrehashType } from "./wal export interface Secp256k1WalletSerialization { /** A format+version identifier for this serialization format */ readonly type: string; - /** Information about the key derivation function (i.e. password to encrytion key) */ + /** Information about the key derivation function (i.e. password to encryption key) */ readonly kdf: KdfConfiguration; /** Information about the symmetric encryption */ readonly encryption: { @@ -68,7 +68,7 @@ export declare class Secp256k1Wallet implements OfflineSigner { private static deserializeType1; /** Base secret */ private readonly secret; - /** Derivation instrations */ + /** Derivation instruction */ private readonly accounts; /** Derived data */ private readonly pubkey; @@ -88,10 +88,10 @@ export declare class Secp256k1Wallet implements OfflineSigner { /** * Generates an encrypted serialization of this wallet. * - * This is an advanced alternative of calling `serialize(password)` directly, which allows you to - * offload the KDF execution to an non-UI thread (e.g. in a WebWorker). + * This is an advanced alternative to calling `serialize(password)` directly, which allows you to + * offload the KDF execution to a non-UI thread (e.g. in a WebWorker). * - * The caller is responsible for ensuring the key was derived with the given kdf options. If this + * The caller is responsible for ensuring the key was derived with the given KDF options. If this * is not the case, the wallet cannot be restored with the original password. */ serializeWithEncryptionKey(encryptionKey: Uint8Array, kdfConfiguration: KdfConfiguration): Promise;