@sip-protocol/sdk 0.6.11 → 0.6.12
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/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/package.json +1 -1
- package/src/proofs/browser.ts +2 -1
package/dist/browser.js
CHANGED
|
@@ -21974,7 +21974,7 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
21974
21974
|
for (let i = 0; i < len; i++) {
|
|
21975
21975
|
result = result * 256n + BigInt(bytes[i]);
|
|
21976
21976
|
}
|
|
21977
|
-
return result.toString()
|
|
21977
|
+
return `0x${result.toString(16)}`;
|
|
21978
21978
|
}
|
|
21979
21979
|
bigintToBytes(value, length) {
|
|
21980
21980
|
const bytes = new Uint8Array(length);
|
package/dist/browser.mjs
CHANGED
|
@@ -987,7 +987,7 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
987
987
|
for (let i = 0; i < len; i++) {
|
|
988
988
|
result = result * 256n + BigInt(bytes[i]);
|
|
989
989
|
}
|
|
990
|
-
return result.toString()
|
|
990
|
+
return `0x${result.toString(16)}`;
|
|
991
991
|
}
|
|
992
992
|
bigintToBytes(value, length) {
|
|
993
993
|
const bytes = new Uint8Array(length);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sip-protocol/sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"description": "Core SDK for Shielded Intents Protocol - Privacy layer for cross-chain transactions",
|
|
5
5
|
"author": "SIP Protocol <hello@sip-protocol.org>",
|
|
6
6
|
"homepage": "https://sip-protocol.org",
|
package/src/proofs/browser.ts
CHANGED
|
@@ -1035,7 +1035,8 @@ export class BrowserNoirProvider implements ProofProvider {
|
|
|
1035
1035
|
for (let i = 0; i < len; i++) {
|
|
1036
1036
|
result = result * 256n + BigInt(bytes[i])
|
|
1037
1037
|
}
|
|
1038
|
-
|
|
1038
|
+
// Return hex format with 0x prefix to match other field inputs
|
|
1039
|
+
return `0x${result.toString(16)}`
|
|
1039
1040
|
}
|
|
1040
1041
|
|
|
1041
1042
|
private bigintToBytes(value: bigint, length: number): Uint8Array {
|