You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/amino/src/secp256k1hdwallet.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,8 @@ export class Secp256k1HdWallet implements OfflineAminoSigner {
171
171
*
172
172
* @param password The user provided password used to generate an encryption key via a KDF.
173
173
* This is not normalized internally (see "Unicode normalization" to learn more).
174
+
*
175
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
@@ -191,6 +193,8 @@ export class Secp256k1HdWallet implements OfflineAminoSigner {
191
193
*
192
194
* The caller is responsible for ensuring the key was derived with the given KDF configuration. This can be
193
195
* done using `extractKdfConfiguration(serialization)` and `executeKdf(password, kdfConfiguration)` from this package.
196
+
*
197
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
194
198
*/
195
199
publicstaticasyncdeserializeWithEncryptionKey(
196
200
serialization: string,
@@ -290,6 +294,8 @@ export class Secp256k1HdWallet implements OfflineAminoSigner {
290
294
*
291
295
* @param password The user provided password used to generate an encryption key via a KDF.
292
296
* This is not normalized internally (see "Unicode normalization" to learn more).
297
+
*
298
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
@@ -305,6 +311,8 @@ export class Secp256k1HdWallet implements OfflineAminoSigner {
305
311
*
306
312
* The caller is responsible for ensuring the key was derived with the given KDF options. If this
307
313
* is not the case, the wallet cannot be restored with the original password.
314
+
*
315
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
60
+
*/
55
61
exportasyncfunctionencrypt(
56
62
plaintext: Uint8Array,
57
63
encryptionKey: Uint8Array,
@@ -71,6 +77,9 @@ export async function encrypt(
71
77
}
72
78
}
73
79
80
+
/**
81
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
Copy file name to clipboardExpand all lines: packages/proto-signing/src/directsecp256k1hdwallet.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,8 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
170
170
*
171
171
* @param password The user provided password used to generate an encryption key via a KDF.
172
172
* This is not normalized internally (see "Unicode normalization" to learn more).
173
+
*
174
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
@@ -189,6 +191,8 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
189
191
*
190
192
* The caller is responsible for ensuring the key was derived with the given KDF configuration. This can be
191
193
* done using `extractKdfConfiguration(serialization)` and `executeKdf(password, kdfConfiguration)` from this package.
194
+
*
195
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
192
196
*/
193
197
publicstaticasyncdeserializeWithEncryptionKey(
194
198
serialization: string,
@@ -290,6 +294,8 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
290
294
*
291
295
* @param password The user provided password used to generate an encryption key via a KDF.
292
296
* This is not normalized internally (see "Unicode normalization" to learn more).
297
+
*
298
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
@@ -305,6 +311,8 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
305
311
*
306
312
* The caller is responsible for ensuring the key was derived with the given KDF options. If this
307
313
* is not the case, the wallet cannot be restored with the original password.
314
+
*
315
+
* @deprecated Encryption support may be removed from CosmJS in a future version. If you actually use this, comment at https://github.com/cosmos/cosmjs/issues/1796
0 commit comments