@neuraiproject/neurai-sign-esp32 0.7.1 → 0.7.2
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 +17 -1
- package/dist/NeuraiSignESP32.global.js +2056 -1229
- package/dist/browser.js +2056 -1229
- package/dist/index.cjs +2056 -1229
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +2056 -1229
- package/dist/react-native.d.ts +10 -1
- package/dist/react-native.js +2056 -1229
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -677,7 +677,9 @@ oldest release the declarations support).
|
|
|
677
677
|
|
|
678
678
|
Each UTXO requires the `rawTxHex` field — the full raw hex of the previous
|
|
679
679
|
transaction. This is needed because P2PKH inputs use `nonWitnessUtxo` in the
|
|
680
|
-
PSBT spec.
|
|
680
|
+
PSBT spec. Any Neurai transaction version is accepted, version 3 (NIP-014
|
|
681
|
+
reference inputs) included, and it must hash to the txid the input spends. You
|
|
682
|
+
can get it from your Neurai node:
|
|
681
683
|
|
|
682
684
|
```javascript
|
|
683
685
|
const rawTxHex = await rpc("getrawtransaction", [txid]);
|
|
@@ -941,6 +943,20 @@ ArduinoJson parser was checked on the host up to MAX_MONEY; this does not replac
|
|
|
941
943
|
an on-device signing and display check of the firmware installed on your ESP32.
|
|
942
944
|
No global bigint JSON serializer is required.
|
|
943
945
|
|
|
946
|
+
## Upgrading to 0.7.2
|
|
947
|
+
|
|
948
|
+
Previous transactions may be Neurai version-3 transactions (privacy pools and
|
|
949
|
+
state threads create them; NIP-014 serializes their reference inputs, even an
|
|
950
|
+
empty list). bitcoinjs-lib cannot read them and failed with "Transaction has
|
|
951
|
+
unexpected data" while building or finalizing a PSBT that spends one of their
|
|
952
|
+
outputs. The PSBT helpers now read every `nonWitnessUtxo` with the codec of
|
|
953
|
+
`@neuraiproject/neurai-create-transaction` (new dependency), check that it
|
|
954
|
+
hashes to the txid the input spends, and finalize inputs without
|
|
955
|
+
`Psbt.finalizeInput`, which would parse it again. A version-3 transaction *to
|
|
956
|
+
sign* is refused with an explicit error: a PSBT has no field for its reference
|
|
957
|
+
inputs. The device firmware (uNeurai) must also parse version-3 previous
|
|
958
|
+
transactions before it can sign such inputs.
|
|
959
|
+
|
|
944
960
|
## Upgrading to 0.7.1
|
|
945
961
|
|
|
946
962
|
0.7.1 requires the published `neurai-depin-msg@3.1.3` for development and
|