@rhinestone/sdk 0.0.0-dev-20260622160620 → 0.0.0-dev-20260622162016
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* RFC 8785 JSON Canonicalization Scheme (JCS).
|
|
3
3
|
*
|
|
4
4
|
* Produces a deterministic JSON serialization by:
|
|
5
|
-
* 1. Sorting object keys lexicographically (
|
|
5
|
+
* 1. Sorting object keys lexicographically (UTF-16 code-unit order, per RFC 8785 §3.2.3)
|
|
6
6
|
* 2. Using ES2015+ `JSON.stringify` number serialization (IEEE 754 → shortest round-trip)
|
|
7
7
|
* 3. No whitespace
|
|
8
8
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* RFC 8785 JSON Canonicalization Scheme (JCS).
|
|
4
4
|
*
|
|
5
5
|
* Produces a deterministic JSON serialization by:
|
|
6
|
-
* 1. Sorting object keys lexicographically (
|
|
6
|
+
* 1. Sorting object keys lexicographically (UTF-16 code-unit order, per RFC 8785 §3.2.3)
|
|
7
7
|
* 2. Using ES2015+ `JSON.stringify` number serialization (IEEE 754 → shortest round-trip)
|
|
8
8
|
* 3. No whitespace
|
|
9
9
|
*
|
|
@@ -46,7 +46,9 @@ function serialize(value) {
|
|
|
46
46
|
const items = value.map((item) => serialize(item));
|
|
47
47
|
return `[${items.join(',')}]`;
|
|
48
48
|
}
|
|
49
|
-
// Object — sort keys by
|
|
49
|
+
// Object — sort keys by UTF-16 code-unit order (RFC 8785 §3.2.3).
|
|
50
|
+
// Native String comparison already orders by UTF-16 code unit, which is
|
|
51
|
+
// exactly what JCS mandates — do not replace with a code-point comparator.
|
|
50
52
|
const obj = value;
|
|
51
53
|
const keys = Object.keys(obj).sort();
|
|
52
54
|
const members = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const PROD_ORCHESTRATOR_URL = "https://v1.orchestrator.rhinestone.dev";
|
|
2
2
|
declare const RHINESTONE_SPOKE_POOL_ADDRESS = "0x000000000060f6e853447881951574cdd0663530";
|
|
3
|
-
declare const SDK_VERSION = "0.0.0-dev-
|
|
3
|
+
declare const SDK_VERSION = "0.0.0-dev-20260622162016";
|
|
4
4
|
declare const API_VERSION = "2026-01.alps";
|
|
5
5
|
export { PROD_ORCHESTRATOR_URL, RHINESTONE_SPOKE_POOL_ADDRESS, SDK_VERSION, API_VERSION, };
|
|
6
6
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -5,7 +5,7 @@ const PROD_ORCHESTRATOR_URL = 'https://v1.orchestrator.rhinestone.dev';
|
|
|
5
5
|
exports.PROD_ORCHESTRATOR_URL = PROD_ORCHESTRATOR_URL;
|
|
6
6
|
const RHINESTONE_SPOKE_POOL_ADDRESS = '0x000000000060f6e853447881951574cdd0663530';
|
|
7
7
|
exports.RHINESTONE_SPOKE_POOL_ADDRESS = RHINESTONE_SPOKE_POOL_ADDRESS;
|
|
8
|
-
const SDK_VERSION = '0.0.0-dev-
|
|
8
|
+
const SDK_VERSION = '0.0.0-dev-20260622162016';
|
|
9
9
|
exports.SDK_VERSION = SDK_VERSION;
|
|
10
10
|
const API_VERSION = '2026-01.alps';
|
|
11
11
|
exports.API_VERSION = API_VERSION;
|