@oceanprotocol/lib 6.1.0 → 6.1.1

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.
@@ -1,8 +1,10 @@
1
+ type PublicKeyInput = string | Uint8Array | number[] | Record<number, number>;
1
2
  /**
2
3
  * @dev eciesencrypt
3
4
  * Encrypt content using ECIES and return the encrypted content as a hex string
4
5
  *
5
- * @param publicKey public key string '0x...'
6
+ * @param publicKey public key as hex string, byte array, or numeric-key object
6
7
  * @param content content to encrypt
7
8
  */
8
- export declare function eciesencrypt(publicKey: string, content: string): string;
9
+ export declare function eciesencrypt(publicKey: PublicKeyInput, content: string): string;
10
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "6.1.0",
4
+ "version": "6.1.1",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",