mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Fix a bunch of typos in comments
This commit is contained in:
parent
e949d92097
commit
efc9498fe7
@ -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(
|
||||
|
10
packages/sdk38/types/secp256k1wallet.d.ts
vendored
10
packages/sdk38/types/secp256k1wallet.d.ts
vendored
@ -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<string>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user