@totemsdk/core 1.2.8 → 1.2.10
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/cjs/index.js +5 -5
- package/dist/cjs/script.js +1 -1
- package/dist/index.js +5 -5
- package/dist/script.js +1 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -93,11 +93,11 @@ var wasm_sync_js_6 = require("./wasm-sync.js");
|
|
|
93
93
|
Object.defineProperty(exports, "mmrRootFromPublicKeys", { enumerable: true, get: function () { return wasm_sync_js_6.mmrRootFromPublicKeys; } });
|
|
94
94
|
Object.defineProperty(exports, "verifyMMRProof", { enumerable: true, get: function () { return wasm_sync_js_6.verifyMMRProof; } });
|
|
95
95
|
// BIP39 Seed Phrase Handling
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
96
|
+
// The WASM binding (wasm-sync.ts) shares the canonical 2048-word BIP39 list
|
|
97
|
+
// and Minima-compatible uppercase canonicalization with the TS implementation
|
|
98
|
+
// (packages/core-wasm/src/bip39.rs -- regenerated from bip39.ts). We still
|
|
99
|
+
// route the public API through the TS implementation (bip39.ts): it is the
|
|
100
|
+
// canonical source of truth and avoids double-entering the list.
|
|
101
101
|
var bip39_js_1 = require("./bip39.js");
|
|
102
102
|
Object.defineProperty(exports, "phraseToSeed", { enumerable: true, get: function () { return bip39_js_1.phraseToSeed; } });
|
|
103
103
|
Object.defineProperty(exports, "generateWordList", { enumerable: true, get: function () { return bip39_js_1.generateWordList; } });
|
package/dist/cjs/script.js
CHANGED
|
@@ -8,7 +8,7 @@ const derive_js_1 = require("./derive.js");
|
|
|
8
8
|
/** Produce KISSVM script that authorizes with a WOTS PK digest (32 bytes). */
|
|
9
9
|
function scriptFromWotsPk(pkDigest32) {
|
|
10
10
|
// Minima uses SHA3-256 in SIGNEDBY paths; here we embed the digest as hex.
|
|
11
|
-
return `RETURN SIGNEDBY(${(0, util_js_1.bytesToHex)(pkDigest32)})`;
|
|
11
|
+
return `RETURN SIGNEDBY(0x${(0, util_js_1.bytesToHex)(pkDigest32)})`;
|
|
12
12
|
}
|
|
13
13
|
/** Address from WOTS keypair (client-only): script -> MMR leaf -> Mx */
|
|
14
14
|
function wotsAddressFromKeypair(kp) {
|
package/dist/index.js
CHANGED
|
@@ -35,11 +35,11 @@ export { deriveChainSeedJava, derivePerAddressSeed, deriveRootPrivSeed, writeMin
|
|
|
35
35
|
export { createUnifiedChildTreeKey, createUnifiedRootTreeKey, deriveUnifiedAddressPublicKey, verifyTreeSignature, } from './treekey.js';
|
|
36
36
|
export { mmrRootFromPublicKeys, verifyMMRProof, } from './wasm-sync.js';
|
|
37
37
|
// BIP39 Seed Phrase Handling
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
38
|
+
// The WASM binding (wasm-sync.ts) shares the canonical 2048-word BIP39 list
|
|
39
|
+
// and Minima-compatible uppercase canonicalization with the TS implementation
|
|
40
|
+
// (packages/core-wasm/src/bip39.rs -- regenerated from bip39.ts). We still
|
|
41
|
+
// route the public API through the TS implementation (bip39.ts): it is the
|
|
42
|
+
// canonical source of truth and avoids double-entering the list.
|
|
43
43
|
export { phraseToSeed, generateWordList, validatePhrase, cleanSeedPhrase, } from './bip39.js';
|
|
44
44
|
// Address Derivation
|
|
45
45
|
export { makeMxAddress, parseMxAddress, wotsAddressFromKeypair, } from './wasm-sync.js';
|
package/dist/script.js
CHANGED
|
@@ -3,7 +3,7 @@ import { scriptToAddress } from "./derive.js";
|
|
|
3
3
|
/** Produce KISSVM script that authorizes with a WOTS PK digest (32 bytes). */
|
|
4
4
|
export function scriptFromWotsPk(pkDigest32) {
|
|
5
5
|
// Minima uses SHA3-256 in SIGNEDBY paths; here we embed the digest as hex.
|
|
6
|
-
return `RETURN SIGNEDBY(${bytesToHex(pkDigest32)})`;
|
|
6
|
+
return `RETURN SIGNEDBY(0x${bytesToHex(pkDigest32)})`;
|
|
7
7
|
}
|
|
8
8
|
/** Address from WOTS keypair (client-only): script -> MMR leaf -> Mx */
|
|
9
9
|
export function wotsAddressFromKeypair(kp) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totemsdk/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Core cryptographic primitives for Totem SDK — backed by Rust/WASM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"LICENSE"
|
|
120
120
|
],
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@totemsdk/core-wasm": "^
|
|
122
|
+
"@totemsdk/core-wasm": "^1.0.0"
|
|
123
123
|
},
|
|
124
124
|
"engines": {
|
|
125
125
|
"node": ">=16.0.0"
|
|
@@ -136,13 +136,13 @@
|
|
|
136
136
|
},
|
|
137
137
|
"license": "MIT",
|
|
138
138
|
"author": "Totem SDK",
|
|
139
|
-
"homepage": "https://totem.ing",
|
|
139
|
+
"homepage": "https://docs.totem.ing",
|
|
140
140
|
"bugs": {
|
|
141
|
-
"url": "https://github.com/
|
|
141
|
+
"url": "https://github.com/Totem-Edge/totem-sdk/issues"
|
|
142
142
|
},
|
|
143
143
|
"repository": {
|
|
144
144
|
"type": "git",
|
|
145
|
-
"url": "git+https://github.com/
|
|
145
|
+
"url": "git+https://github.com/Totem-Edge/totem-sdk.git",
|
|
146
146
|
"directory": "packages/core"
|
|
147
147
|
},
|
|
148
148
|
"keywords": [
|