@obolnetwork/obol-sdk 2.11.10 → 2.11.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/README.md +2 -2
- package/dist/browser/src/index.js +12636 -9908
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +11469 -9238
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +11440 -9210
- package/dist/esm/src/index.js.map +1 -1
- package/dist/types/src/blsUtils.d.ts +4 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/services.d.ts +5 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +54 -45
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function blsVerify(pubkey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean;
|
|
2
|
+
export declare function blsVerifyAggregate(pubkeys: Uint8Array[], message: Uint8Array, signature: Uint8Array): boolean;
|
|
3
|
+
export declare function blsVerifyMultiple(pubkeys: Uint8Array[], messages: Uint8Array[], signature: Uint8Array): boolean;
|
|
4
|
+
export declare function blsAggregateSignatures(signatures: Uint8Array[]): Uint8Array;
|
|
@@ -14,6 +14,7 @@ export { Incentives } from './incentives/incentives.js';
|
|
|
14
14
|
export { Exit } from './exits/exit.js';
|
|
15
15
|
export { ObolSplits } from './splits/splits.js';
|
|
16
16
|
export { EOA } from './eoa/eoa.js';
|
|
17
|
+
export { blsVerify } from './blsUtils.js';
|
|
17
18
|
/**
|
|
18
19
|
* Primary entrypoint for the Obol SDK. Use this class to create, manage,
|
|
19
20
|
* and activate Distributed Validators via the Obol API.
|
|
@@ -7,6 +7,11 @@ import { type SafeRpcUrl, type ClusterLock } from './types.js';
|
|
|
7
7
|
*
|
|
8
8
|
* This is a standalone utility – it does **not** require a `Client` instance.
|
|
9
9
|
*
|
|
10
|
+
* **Charon:** this covers cryptographic and structural checks in this SDK only.
|
|
11
|
+
* Charon adds further runtime/protocol rules. `true` here does not guarantee
|
|
12
|
+
* Charon will accept the lock; use Charon or its supported tooling as the
|
|
13
|
+
* final gate before operating a cluster.
|
|
14
|
+
*
|
|
10
15
|
* @param lock - The cluster lock object (e.g. from {@link Client.getClusterLock}).
|
|
11
16
|
* @param safeRpcUrl - Optional RPC URL for Safe Wallet signature verification.
|
|
12
17
|
* If omitted, falls back to the `RPC_MAINNET` / `RPC_HOODI` / etc. env vars.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../tsup.config.ts","../../src/ajv.ts","../../src/base.ts","../../src/bytecodes.ts","../../src/constants.ts","../../src/errors.ts","../../src/index.ts","../../src/schema.ts","../../src/services.ts","../../src/types.ts","../../src/utils.ts","../../src/abi/BatchDeposit.ts","../../src/abi/MerkleDistributorWithDeadline.ts","../../src/abi/Multicall3.ts","../../src/abi/OVM.ts","../../src/abi/OWR.ts","../../src/abi/SplitMain.ts","../../src/abi/splitV2FactoryAbi.ts","../../src/eoa/eoa.ts","../../src/eoa/eoaHelpers.ts","../../src/exits/ethUtils.ts","../../src/exits/exit.ts","../../src/exits/verificationHelpers.ts","../../src/incentives/incentiveHelpers.ts","../../src/incentives/incentives.ts","../../src/splits/splitHelpers.ts","../../src/splits/splits.ts","../../src/verification/common.ts","../../src/verification/signature-validator.ts","../../src/verification/sszTypes.ts","../../src/verification/v1.10.0.ts","../../src/verification/v1.6.0.ts","../../src/verification/v1.7.0.ts","../../src/verification/v1.8.0.ts","../../test/fixtures.ts","../../test/client/ajv.spec.ts","../../test/client/methods.spec.ts","../../test/eoa/eoa.spec.ts","../../test/exit/ethUtils.spec.ts","../../test/exit/exit.spec.ts","../../test/exit/verificationHelpers.spec.ts","../../test/incentives/incentives.spec.ts","../../test/splits/splits.spec.ts"],"version":"5.9.3"}
|
|
1
|
+
{"root":["../../tsup.config.ts","../../src/ajv.ts","../../src/base.ts","../../src/blsUtils.ts","../../src/bytecodes.ts","../../src/constants.ts","../../src/errors.ts","../../src/index.ts","../../src/schema.ts","../../src/services.ts","../../src/types.ts","../../src/utils.ts","../../src/abi/BatchDeposit.ts","../../src/abi/MerkleDistributorWithDeadline.ts","../../src/abi/Multicall3.ts","../../src/abi/OVM.ts","../../src/abi/OWR.ts","../../src/abi/SplitMain.ts","../../src/abi/splitV2FactoryAbi.ts","../../src/eoa/eoa.ts","../../src/eoa/eoaHelpers.ts","../../src/exits/ethUtils.ts","../../src/exits/exit.ts","../../src/exits/verificationHelpers.ts","../../src/incentives/incentiveHelpers.ts","../../src/incentives/incentives.ts","../../src/splits/splitHelpers.ts","../../src/splits/splits.ts","../../src/verification/common.ts","../../src/verification/signature-validator.ts","../../src/verification/sszTypes.ts","../../src/verification/v1.10.0.ts","../../src/verification/v1.6.0.ts","../../src/verification/v1.7.0.ts","../../src/verification/v1.8.0.ts","../../test/fixtures.ts","../../test/client/ajv.spec.ts","../../test/client/methods.spec.ts","../../test/eoa/eoa.spec.ts","../../test/exit/ethUtils.spec.ts","../../test/exit/exit.spec.ts","../../test/exit/verificationHelpers.spec.ts","../../test/incentives/incentives.spec.ts","../../test/splits/splits.spec.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obolnetwork/obol-sdk",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.12",
|
|
4
4
|
"description": "A package for creating Distributed Validators using the Obol API.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/obolnetwork/obol-sdk/issues"
|
|
@@ -48,63 +48,72 @@
|
|
|
48
48
|
"author": "Obol Labs (https://obol.org)",
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
|
-
"url": "
|
|
51
|
+
"url": "https://github.com/ObolNetwork/obol-sdk"
|
|
52
52
|
},
|
|
53
53
|
"license": "ISC",
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"registry": "https://registry.npmjs.org/",
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
+
"//": [
|
|
59
|
+
"PINNING NOTES:",
|
|
60
|
+
"@chainsafe/ssz MUST stay at ^0.14.x — v0.15+ set type:module (ESM-only), same CJS constraint.",
|
|
61
|
+
"@typescript-eslint/* stays at ^6.x — eslint-config-standard-with-typescript@43 requires plugin ^6; v8 causes peer conflict.",
|
|
62
|
+
"uuid stays at ^9.x — v11+ sets type:module (ESM-only).",
|
|
63
|
+
"viem override pins a single resolved version to prevent duplicates across @safe-global/protocol-kit.",
|
|
64
|
+
"@noble/curves replaces @chainsafe/bls — pure-JS CJS+ESM, no native addon, same ETH2 BLS12-381 spec. See CHAINSAFE_MIGRATION_PLAN.md."
|
|
65
|
+
],
|
|
66
|
+
"resolutions": {},
|
|
58
67
|
"overrides": {
|
|
59
|
-
"viem": "2.
|
|
68
|
+
"viem": "2.48.7"
|
|
60
69
|
},
|
|
61
70
|
"dependencies": {
|
|
62
|
-
"@chainsafe/
|
|
63
|
-
"@
|
|
64
|
-
"@chainsafe/ssz": "
|
|
65
|
-
"@metamask/eth-sig-util": "
|
|
66
|
-
"@safe-global/protocol-kit": "
|
|
67
|
-
"@safe-global/types-kit": "
|
|
68
|
-
"ajv": "
|
|
69
|
-
"ajv-formats": "
|
|
70
|
-
"ajv-keywords": "
|
|
71
|
-
"cross-fetch": "
|
|
72
|
-
"dotenv": "
|
|
73
|
-
"elliptic": "
|
|
74
|
-
"ethers": "
|
|
75
|
-
"semver": "
|
|
76
|
-
"uuid": "
|
|
71
|
+
"@chainsafe/enr": "6.0.1",
|
|
72
|
+
"@noble/curves": "2.2.0",
|
|
73
|
+
"@chainsafe/ssz": "0.14.3",
|
|
74
|
+
"@metamask/eth-sig-util": "8.2.0",
|
|
75
|
+
"@safe-global/protocol-kit": "7.1.0",
|
|
76
|
+
"@safe-global/types-kit": "3.1.0",
|
|
77
|
+
"ajv": "8.20.0",
|
|
78
|
+
"ajv-formats": "3.0.1",
|
|
79
|
+
"ajv-keywords": "5.1.0",
|
|
80
|
+
"cross-fetch": "4.1.0",
|
|
81
|
+
"dotenv": "17.4.2",
|
|
82
|
+
"elliptic": "6.6.1",
|
|
83
|
+
"ethers": "6.16.0",
|
|
84
|
+
"semver": "7.7.4",
|
|
85
|
+
"uuid": "9.0.1"
|
|
77
86
|
},
|
|
78
87
|
"devDependencies": {
|
|
79
|
-
"@release-it/conventional-changelog": "
|
|
80
|
-
"@types/elliptic": "
|
|
81
|
-
"@types/jest": "
|
|
82
|
-
"@types/node": "
|
|
83
|
-
"@types/semver": "
|
|
84
|
-
"@types/uuid": "
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "
|
|
86
|
-
"@typescript-eslint/parser": "
|
|
87
|
-
"eslint": "8.57.
|
|
88
|
-
"eslint-config-standard-with-typescript": "
|
|
89
|
-
"eslint-plugin-import": "
|
|
90
|
-
"eslint-plugin-n": "
|
|
91
|
-
"eslint-plugin-promise": "
|
|
92
|
-
"husky": "
|
|
93
|
-
"jest": "
|
|
94
|
-
"lint-staged": "
|
|
95
|
-
"msw": "
|
|
96
|
-
"nock": "
|
|
97
|
-
"npm-run-all": "
|
|
98
|
-
"prettier": "
|
|
99
|
-
"release-it": "
|
|
100
|
-
"ts-jest": "
|
|
101
|
-
"tsup": "
|
|
102
|
-
"typedoc": "
|
|
103
|
-
"typedoc-plugin-markdown": "
|
|
104
|
-
"typescript": "
|
|
88
|
+
"@release-it/conventional-changelog": "11.0.0",
|
|
89
|
+
"@types/elliptic": "6.4.18",
|
|
90
|
+
"@types/jest": "29.5.14",
|
|
91
|
+
"@types/node": "24.12.2",
|
|
92
|
+
"@types/semver": "7.7.1",
|
|
93
|
+
"@types/uuid": "9.0.8",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
95
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
96
|
+
"eslint": "8.57.1",
|
|
97
|
+
"eslint-config-standard-with-typescript": "43.0.1",
|
|
98
|
+
"eslint-plugin-import": "2.32.0",
|
|
99
|
+
"eslint-plugin-n": "17.24.0",
|
|
100
|
+
"eslint-plugin-promise": "7.3.0",
|
|
101
|
+
"husky": "9.1.7",
|
|
102
|
+
"jest": "29.7.0",
|
|
103
|
+
"lint-staged": "16.4.0",
|
|
104
|
+
"msw": "2.14.2",
|
|
105
|
+
"nock": "14.0.14",
|
|
106
|
+
"npm-run-all": "4.1.5",
|
|
107
|
+
"prettier": "3.8.3",
|
|
108
|
+
"release-it": "19.2.4",
|
|
109
|
+
"ts-jest": "29.4.9",
|
|
110
|
+
"tsup": "8.5.1",
|
|
111
|
+
"typedoc": "0.28.19",
|
|
112
|
+
"typedoc-plugin-markdown": "4.11.0",
|
|
113
|
+
"typescript": "5.9.3"
|
|
105
114
|
},
|
|
106
115
|
"engines": {
|
|
107
|
-
"node": ">=
|
|
116
|
+
"node": ">= 24"
|
|
108
117
|
},
|
|
109
118
|
"files": [
|
|
110
119
|
"package.json",
|