/** * A fixed salt is chosen to archive a deterministic password to key derivation. * This reduces the scope of a potential rainbow attack to all CosmJS users. * Must be 16 bytes due to implementation limitations. */ export declare const cosmjsSalt: Uint8Array; export interface KdfConfiguration { /** * An algorithm identifier, such as "argon2id" or "scrypt". */ readonly algorithm: string; /** A map of algorithm-specific parameters */ readonly params: Record; } /** * @deprecated Wallet encryption support will be removed from CosmJS in a future version. * If you actually use this, please comment at https://github.com/cosmos/cosmjs/issues/1796. */ export declare function executeKdf(password: string, configuration: KdfConfiguration): Promise; /** * Configuration how to encrypt data or how data was encrypted. * This is stored as part of the wallet serialization and must only contain JSON types. */ export interface EncryptionConfiguration { /** * An algorithm identifier, such as "xchacha20poly1305-ietf". */ readonly algorithm: string; /** A map of algorithm-specific parameters */ readonly params?: Record; } export declare const supportedAlgorithms: { xchacha20poly1305Ietf: string; }; /** * @deprecated Wallet encryption support will be removed from CosmJS in a future version. * If you actually use this, please comment at https://github.com/cosmos/cosmjs/issues/1796. */ export declare function encrypt(plaintext: Uint8Array, encryptionKey: Uint8Array, config: EncryptionConfiguration): Promise; /** * @deprecated Wallet encryption support will be removed from CosmJS in a future version. * If you actually use this, please comment at https://github.com/cosmos/cosmjs/issues/1796. */ export declare function decrypt(ciphertext: Uint8Array, encryptionKey: Uint8Array, config: EncryptionConfiguration): Promise;