@totemsdk/omnia-vtxo 0.5.3 → 0.5.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.
|
@@ -28,8 +28,12 @@
|
|
|
28
28
|
* See RFC-048 §12 / RFC-049 §5.
|
|
29
29
|
*/
|
|
30
30
|
export declare const POOL_SHARE_PORT_BASE = 128;
|
|
31
|
-
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
32
|
-
|
|
31
|
+
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
32
|
+
* The node installs the MASH authorization bundle at ports **230–255**
|
|
33
|
+
* (`bundleBase = 256 − (4 + k) = 230`): the header R / ROOTS_BLOB /
|
|
34
|
+
* SECRETS_BLOB / TREE_SIG at 230–233 and PROOF at 234–255. A composite
|
|
35
|
+
* MASH + Omnia coin must therefore keep Omnia ports ≤ 229. */
|
|
36
|
+
export declare const MSHS_PORT_FLOOR = 230;
|
|
33
37
|
/** Maximum holders whose share ports remain below the MSHS floor. */
|
|
34
38
|
export declare const POOL_MAX_HOLDERS: number;
|
|
35
39
|
export interface PoolScriptParams {
|
package/dist/cjs/pool-script.js
CHANGED
|
@@ -35,8 +35,12 @@ const core_1 = require("@totemsdk/core");
|
|
|
35
35
|
* See RFC-048 §12 / RFC-049 §5.
|
|
36
36
|
*/
|
|
37
37
|
exports.POOL_SHARE_PORT_BASE = 128;
|
|
38
|
-
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
39
|
-
|
|
38
|
+
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
39
|
+
* The node installs the MASH authorization bundle at ports **230–255**
|
|
40
|
+
* (`bundleBase = 256 − (4 + k) = 230`): the header R / ROOTS_BLOB /
|
|
41
|
+
* SECRETS_BLOB / TREE_SIG at 230–233 and PROOF at 234–255. A composite
|
|
42
|
+
* MASH + Omnia coin must therefore keep Omnia ports ≤ 229. */
|
|
43
|
+
exports.MSHS_PORT_FLOOR = 230;
|
|
40
44
|
/** Maximum holders whose share ports remain below the MSHS floor. */
|
|
41
45
|
exports.POOL_MAX_HOLDERS = exports.MSHS_PORT_FLOOR - exports.POOL_SHARE_PORT_BASE;
|
|
42
46
|
function pkHex(digest, label) {
|
package/dist/pool-script.d.ts
CHANGED
|
@@ -28,8 +28,12 @@
|
|
|
28
28
|
* See RFC-048 §12 / RFC-049 §5.
|
|
29
29
|
*/
|
|
30
30
|
export declare const POOL_SHARE_PORT_BASE = 128;
|
|
31
|
-
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
32
|
-
|
|
31
|
+
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
32
|
+
* The node installs the MASH authorization bundle at ports **230–255**
|
|
33
|
+
* (`bundleBase = 256 − (4 + k) = 230`): the header R / ROOTS_BLOB /
|
|
34
|
+
* SECRETS_BLOB / TREE_SIG at 230–233 and PROOF at 234–255. A composite
|
|
35
|
+
* MASH + Omnia coin must therefore keep Omnia ports ≤ 229. */
|
|
36
|
+
export declare const MSHS_PORT_FLOOR = 230;
|
|
33
37
|
/** Maximum holders whose share ports remain below the MSHS floor. */
|
|
34
38
|
export declare const POOL_MAX_HOLDERS: number;
|
|
35
39
|
export interface PoolScriptParams {
|
package/dist/pool-script.js
CHANGED
|
@@ -29,8 +29,12 @@ import { computeScriptAddress } from '@totemsdk/core';
|
|
|
29
29
|
* See RFC-048 §12 / RFC-049 §5.
|
|
30
30
|
*/
|
|
31
31
|
export const POOL_SHARE_PORT_BASE = 128;
|
|
32
|
-
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
33
|
-
|
|
32
|
+
/** Lowest port reserved for MSHS-2 (MASH); Omnia ports MUST stay below this.
|
|
33
|
+
* The node installs the MASH authorization bundle at ports **230–255**
|
|
34
|
+
* (`bundleBase = 256 − (4 + k) = 230`): the header R / ROOTS_BLOB /
|
|
35
|
+
* SECRETS_BLOB / TREE_SIG at 230–233 and PROOF at 234–255. A composite
|
|
36
|
+
* MASH + Omnia coin must therefore keep Omnia ports ≤ 229. */
|
|
37
|
+
export const MSHS_PORT_FLOOR = 230;
|
|
34
38
|
/** Maximum holders whose share ports remain below the MSHS floor. */
|
|
35
39
|
export const POOL_MAX_HOLDERS = MSHS_PORT_FLOOR - POOL_SHARE_PORT_BASE;
|
|
36
40
|
function pkHex(digest, label) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totemsdk/omnia-vtxo",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Virtual UTXO / payment-pool claim layer for Omnia — cash-like off-chain balance primitive for Totem Edge",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@totemsdk/chain-provider": "^0.2.1",
|
|
28
|
+
"@totemsdk/core": "^1.3.0",
|
|
28
29
|
"@totemsdk/omnia": "^2.0.1",
|
|
29
30
|
"@totemsdk/storage": "^0.1.0",
|
|
30
31
|
"@totemsdk/txpow": "^1.0.2",
|
|
31
|
-
"@totemsdk/core": "^1.3.0",
|
|
32
32
|
"@totemsdk/wots-lease": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|