@neuraiproject/neurai-sign-esp32 0.7.0 → 0.7.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 +22 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,6 +40,16 @@ outputs are still signed from the raw unsigned transaction, while optional
|
|
|
40
40
|
display metadata can be provided to the device so the firmware can show the
|
|
41
41
|
asset name, transferred amount, destination address, and fee more clearly.
|
|
42
42
|
|
|
43
|
+
## Reset testnet
|
|
44
|
+
|
|
45
|
+
Before supplying UTXOs or PSBT inputs to this signing library, the host
|
|
46
|
+
application must verify `getblockhash(0)` against
|
|
47
|
+
`0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021`.
|
|
48
|
+
The device does not query the chain. Discard UTXOs and PSBTs assembled from
|
|
49
|
+
the previous testnet. All three AuthScript address families activate on the
|
|
50
|
+
reset testnet at block 10; outputs included earlier have no AuthScript spend
|
|
51
|
+
protection.
|
|
52
|
+
|
|
43
53
|
## Install
|
|
44
54
|
|
|
45
55
|
```
|
|
@@ -354,9 +364,9 @@ await identity.session.ensure({ minRemainingSeconds: 60 });
|
|
|
354
364
|
> `depin_sign_auth` and session permissions are **not implemented in current
|
|
355
365
|
> firmware yet** — the contract they must satisfy is specified, and exercised
|
|
356
366
|
> by a cryptographically faithful device mock, in this package's tests.
|
|
357
|
-
> `@neuraiproject/neurai-depin-msg@3.1.
|
|
358
|
-
> this repository from scratch or publishing `neurai-sign-esp32@0.7.
|
|
359
|
-
> package has no runtime dependency on `neurai-depin-msg`; it is a `^3.1.
|
|
367
|
+
> `@neuraiproject/neurai-depin-msg@3.1.3` is published and required for
|
|
368
|
+
> installing this repository from scratch or publishing `neurai-sign-esp32@0.7.1`.
|
|
369
|
+
> The package has no runtime dependency on `neurai-depin-msg`; it is a `^3.1.3`
|
|
360
370
|
> development dependency used only by the integration tests. The package gate
|
|
361
371
|
> validates the adapter from a clean `neurai-sign-esp32` tarball.
|
|
362
372
|
|
|
@@ -731,8 +741,8 @@ Three of them are spelled like key-5 networks that mean something else:
|
|
|
731
741
|
`type: "pq"` for every Bech32m address (as before) and adds `family`
|
|
732
742
|
(`"authscript"` | `"pq"` | `"ecdsa"`), `witnessVersion` and `network`.
|
|
733
743
|
- `encodeDestinationScript()` emits `OP_1`/`OP_2`/`OP_3 0x20 <C>`.
|
|
734
|
-
- **Activation:**
|
|
735
|
-
|
|
744
|
+
- **Activation:** all three AuthScript families activate on the reset testnet
|
|
745
|
+
at block 10 and on regtest at block 1. Before activation the node refuses `pq1…`/`nq1…` addresses because an
|
|
736
746
|
`OP_2`/`OP_3` output is anyone-can-spend there. The library cannot know the
|
|
737
747
|
activation state of the target chain: do not pay to v2/v3 addresses where
|
|
738
748
|
they are not active.
|
|
@@ -931,6 +941,13 @@ ArduinoJson parser was checked on the host up to MAX_MONEY; this does not replac
|
|
|
931
941
|
an on-device signing and display check of the firmware installed on your ESP32.
|
|
932
942
|
No global bigint JSON serializer is required.
|
|
933
943
|
|
|
944
|
+
## Upgrading to 0.7.1
|
|
945
|
+
|
|
946
|
+
0.7.1 requires the published `neurai-depin-msg@3.1.3` for development and
|
|
947
|
+
integration tests. The runtime API is unchanged. The reset testnet guide now
|
|
948
|
+
records the new genesis, and Web Serial tests run on Node 20. Hardware and
|
|
949
|
+
firmware validation is still required before using the adapter on a device.
|
|
950
|
+
|
|
934
951
|
## Upgrading to 0.7.0
|
|
935
952
|
|
|
936
953
|
0.7.0 follows the address types of the Neurai node (Neurai-DePIN) and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuraiproject/neurai-sign-esp32",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Create and sign PSBTs for Neurai via ESP32 hardware wallet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"varuint-bitcoin": "2.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@neuraiproject/neurai-depin-msg": "^3.1.
|
|
71
|
+
"@neuraiproject/neurai-depin-msg": "^3.1.3",
|
|
72
72
|
"@noble/post-quantum": "^0.6.1",
|
|
73
73
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
74
74
|
"@rollup/plugin-node-resolve": "^16.0.1",
|