@hiveio/dhive 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dhive.d.ts +12 -0
- package/dist/dhive.js.gz +0 -0
- package/dist/dhive.js.map +1 -1
- package/lib/helpers/aes.d.ts +12 -0
- package/lib/helpers/aes.js +4 -4
- package/lib/utils.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/dist/dhive.js +0 -2
package/dist/dhive.d.ts
CHANGED
|
@@ -2951,6 +2951,18 @@ declare module 'dhive/helpers/aes' {
|
|
|
2951
2951
|
import { PrivateKey, PublicKey } from 'dhive/crypto';
|
|
2952
2952
|
export const encrypt: (private_key: PrivateKey, public_key: PublicKey, message: Buffer, nonce?: string) => any;
|
|
2953
2953
|
export const decrypt: (private_key: PrivateKey, public_key: PublicKey, nonce: any, message: any, checksum: number) => any;
|
|
2954
|
+
/**
|
|
2955
|
+
* This method does not use a checksum, the returned data must be validated some other way.
|
|
2956
|
+
* @arg {string|Buffer} ciphertext - binary format
|
|
2957
|
+
* @return {Buffer} the decrypted message
|
|
2958
|
+
*/
|
|
2959
|
+
export const cryptoJsDecrypt: (message: Buffer, tag: any, iv: any) => Buffer;
|
|
2960
|
+
/**
|
|
2961
|
+
* This method does not use a checksum, the returned data must be validated some other way.
|
|
2962
|
+
* @arg {string|Buffer} plaintext - binary format
|
|
2963
|
+
* @return {Buffer} binary
|
|
2964
|
+
*/
|
|
2965
|
+
export const cryptoJsEncrypt: (message: Buffer, tag: any, iv: any) => Buffer;
|
|
2954
2966
|
|
|
2955
2967
|
}
|
|
2956
2968
|
declare module 'dhive/memo' {
|
package/dist/dhive.js.gz
CHANGED
|
Binary file
|