@hinkal/common 0.3.3 → 0.3.4
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/README.md +2 -2
- package/common/src/crypto/index.cjs +1 -1
- package/common/src/crypto/index.d.ts +0 -1
- package/common/src/crypto/index.mjs +0 -1
- package/common/src/webworker/package.json +1 -1
- package/common/src/webworker/viteWorkerURL.constant.cjs +3 -3
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/package.json +1 -1
- package/common/src/crypto/ecdh-dual-path.cjs +0 -1
- package/common/src/crypto/ecdh-dual-path.d.ts +0 -13
- package/common/src/crypto/ecdh-dual-path.mjs +0 -6
package/README.md
CHANGED
|
@@ -540,10 +540,10 @@ Hinkal SDK is available on the following blockchain networks:
|
|
|
540
540
|
| Arbitrum | 42161 | ✅ Live |
|
|
541
541
|
| Polygon | 137 | ✅ Live |
|
|
542
542
|
| Base | 8453 | ✅ Live |
|
|
543
|
-
| Solana | 501 | ✅ Live |
|
|
544
|
-
| Tron | 728126428 | ✅ Live |
|
|
545
543
|
| Tempo | 4217 | ✅ Live |
|
|
546
544
|
| BNB | 56 | ✅ Live |
|
|
545
|
+
| Solana | 501 | ✅ Live |
|
|
546
|
+
| Tron | 728126428 | ✅ Live |
|
|
547
547
|
| Arc Testnet | 5042002 | ✅ Live |
|
|
548
548
|
| Tron Nile | 3448148188 | ✅ Live |
|
|
549
549
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./poseidon.cjs`),require(`./babyJub.cjs`),require(`./eddsa.cjs`),require(`./ecdh-sealed-keys.cjs`),require(`./preProcessing.cjs`),require(`./ecdh.cjs`)
|
|
1
|
+
require(`./poseidon.cjs`),require(`./babyJub.cjs`),require(`./eddsa.cjs`),require(`./ecdh-sealed-keys.cjs`),require(`./preProcessing.cjs`),require(`./ecdh.cjs`);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const domain = 'https://wallet-prodv12.hinkal.io/workers';
|
|
3
3
|
|
|
4
4
|
const WORKER_CDN_URLS = {
|
|
5
|
-
ZKProof: domain + '/0.3.
|
|
6
|
-
SnarkJS: domain + '/0.3.
|
|
7
|
-
UTXO: domain + '/0.3.
|
|
5
|
+
ZKProof: domain + '/0.3.4/' + 'zkProofWorkerLauncher.js',
|
|
6
|
+
SnarkJS: domain + '/0.3.4/' + 'snarkjsWorkerLauncher.js',
|
|
7
|
+
UTXO: domain + '/0.3.4/' + 'utxoWorkerLauncher.js',
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
// Returns a blob:// URL which points
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const domain = 'https://wallet-prodv12.hinkal.io/workers';
|
|
3
3
|
|
|
4
4
|
const WORKER_CDN_URLS = {
|
|
5
|
-
ZKProof: domain + '/0.3.
|
|
6
|
-
SnarkJS: domain + '/0.3.
|
|
7
|
-
UTXO: domain + '/0.3.
|
|
5
|
+
ZKProof: domain + '/0.3.4/' + 'zkProofWorkerLauncher.js',
|
|
6
|
+
SnarkJS: domain + '/0.3.4/' + 'snarkjsWorkerLauncher.js',
|
|
7
|
+
UTXO: domain + '/0.3.4/' + 'utxoWorkerLauncher.js',
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
// Returns a blob:// URL which points
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../functions/utils/bytes32.utils.cjs`),require(`ethers`),require(`@noble/curves/secp256k1.js`),require(`@noble/hashes/hkdf.js`),require(`@noble/hashes/sha2.js`),require(`@noble/hashes/utils.js`);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface KeyPair {
|
|
2
|
-
privateKey: Uint8Array;
|
|
3
|
-
publicKey: Uint8Array;
|
|
4
|
-
}
|
|
5
|
-
export declare const encryptDualPath: (msgBytes: Uint8Array, senderViewingKey: KeyPair, receiver1PublicKey: Uint8Array, receiver2PublicKey: Uint8Array) => Promise<{
|
|
6
|
-
blindedSenderKey: Uint8Array<ArrayBufferLike>;
|
|
7
|
-
wrapKeyReceiver1: Uint8Array<ArrayBufferLike>;
|
|
8
|
-
wrapKeyReceiver2: Uint8Array<ArrayBufferLike>;
|
|
9
|
-
ciphertext: Uint8Array<ArrayBufferLike>;
|
|
10
|
-
nonce: Uint8Array<ArrayBufferLike>;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const decryptDualPath: (ciphertext: Uint8Array, privateKey: Uint8Array, blindedSenderKey: Uint8Array, wrapKey: Uint8Array, nonce: Uint8Array) => Promise<string>;
|
|
13
|
-
export {};
|