Repository navigation
v0.17.0
Enhancements
- [FEATURE][web] Create either asset type with
VaultAsset.fungible(faucetId, amount)orVaultAsset.nonFungible({ key, value }), and carry them innew NoteAssets([asset])ornoteAssets.push(asset). ExistingFungibleAssetcalls remain valid. Vaults and notes exposeassets()andnonFungibleAssets()for name recovery and NFA note flows, including the issuer, complete key, and all four value limbs. Invalid note asset lists now throw catchable errors instead of trapping WASM (#418).
Fixes
-
[FIX][web] Browser clients sharing a database refresh account witnesses from persisted state, preserving untouched assets when applying transaction patches. Applying a transaction rejects changed execution inputs before altering account state or transaction history (#453).
-
[FIX][web] On Node.js,
account.storage()now returns aStorageView, as the declared type and the browser entry already do, sogetItemreturns aStorageResultinstead of a rawWord; use.rawfor the underlyingAccountStorage.StorageView,StorageResultandwordToBigIntare now exported from the Node.js entry point (#417). -
[FIX][web] Export
NoteAndArgsArray,NoteArray,FeltArrayand the other declared array containers, and theMidenArraysnamespace, from the Node.js entry point so their constructors are available at runtime. On Node.js each container is a plain array:getandreplaceAtnow throw on an out-of-range index andfree()is a no-op, as in the browser, but use thelengthproperty rather thanlength()(#427) (#417). -
[FIX][web] In Node.js,
AuthSecretKey.deserialize()andWord.deserialize()now acceptBufferandUint8Arrayinputs, including subarrays, through the public SDK export. RNG seeds and account-builder seeds continue to accept byte arrays (#422).
Changes
- [CHANGE][web] Upgraded
miden-clientto 0.17.0 (from 0.17.0-rc.5), which adopts protocol and node proto 0.17.0. Requires a compatible node (rust-sdk v0.17.0, #445). - [BREAKING][behavior][web] A 32-byte client seed now seeds the client's random generator directly; the release candidates derived a
RandomCoinfrom it. The seed remains deterministic, but it produces different account keys, note serial numbers and other random values than the 0.17 release candidates; do not rely on a client seed to preserve generated identities across this upgrade (#445). - [BREAKING][web] IndexedDB persistence now uses
miden-client-proto's protobuf encoding for stored protocol values. A database written by a 0.17 release candidate uses the previous native encoding and is not compatible with 0.17.0; export anything needed and recreate the client database before upgrading (#444).