@neuraiproject/neurai-key 3.0.0 → 3.0.1
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 +6 -4
- package/dist/NeuraiKey.global.js +2 -2
- package/dist/NeuraiKey.global.js.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@ This library supports three Neurai network configurations:
|
|
|
27
27
|
- **`xna-pq` / `xna-pq-test`**: PostQuantum ML-DSA-44 addresses (Bech32m, witness v1)
|
|
28
28
|
|
|
29
29
|
The main difference is the derivation path and address encoding:
|
|
30
|
-
- **XNA**: `m/44'/1900'/0'/0/0` — Base58Check
|
|
31
|
-
- **XNA Legacy**: `m/44'/0'/0'/0/0` — Base58Check
|
|
32
|
-
- **XNA PostQuantum**: `m/100'/1900'/0'/0/0` — Bech32m
|
|
30
|
+
- **XNA**: mainnet `m/44'/1900'/0'/0/0`, testnet `m/44'/1'/0'/0/0` — Base58Check (recommended for new wallets)
|
|
31
|
+
- **XNA Legacy**: mainnet `m/44'/0'/0'/0/0`, testnet `m/44'/1'/0'/0/0` — Base58Check (for compatibility with older wallets)
|
|
32
|
+
- **XNA PostQuantum**: mainnet `m/100'/1900'/0'/0/0`, testnet default/external `m/100'/1'/0'/0/0` — Bech32m (`nq1` / `tnq1`)
|
|
33
33
|
|
|
34
34
|
**Note**: Using different network types will generate completely different addresses from the same mnemonic.
|
|
35
35
|
|
|
@@ -199,6 +199,8 @@ const pqAddress = NeuraiKey.getPQAddress(network, mnemonic, ACCOUNT, INDEX);
|
|
|
199
199
|
console.log(pqAddress);
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
+
`getPQAddress()` returns the external branch by default.
|
|
203
|
+
|
|
202
204
|
Outputs
|
|
203
205
|
|
|
204
206
|
```
|
|
@@ -245,7 +247,7 @@ const addr1 = NeuraiKey.getPQAddressByPath("xna-pq", hdKey, "m/100'/1900'/0'/0/1
|
|
|
245
247
|
| Testnet HRP / prefix | `tnq` / `tnq1...` |
|
|
246
248
|
| Public key size | 1312 bytes |
|
|
247
249
|
| Derivation path (mainnet) | `m/100'/1900'/0'/0/index` |
|
|
248
|
-
| Derivation path (testnet) | `m/100'/
|
|
250
|
+
| Derivation path (testnet default/external) | `m/100'/1'/account'/0/index` |
|
|
249
251
|
| Address hash | HASH160(0x05 \|\| pubkey) |
|
|
250
252
|
|
|
251
253
|
**Note**: PQ addresses do not have a WIF (Wallet Import Format) field since WIF is specific to secp256k1 keys. The `seedKey` field contains the 32-byte BIP32-derived seed used for deterministic ML-DSA-44 key generation, useful for cross-implementation verification.
|
package/dist/NeuraiKey.global.js
CHANGED
|
@@ -23928,8 +23928,8 @@ zurdo`.split('\n');
|
|
|
23928
23928
|
hrp: "tnq",
|
|
23929
23929
|
witnessVersion: 1,
|
|
23930
23930
|
purpose: 100,
|
|
23931
|
-
coinType:
|
|
23932
|
-
changeIndex:
|
|
23931
|
+
coinType: 1,
|
|
23932
|
+
changeIndex: 0,
|
|
23933
23933
|
bip32: { private: 70615956, public: 70617039 },
|
|
23934
23934
|
},
|
|
23935
23935
|
};
|