You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A reply counts as committed only if it is a 2xx JSON object with a $summary object.Connection.sendTransaction now rejects a 2xx whose body is {}, an HTML proxy page or empty, and onboardKey sets an identity only when the reply is committed (a $summary with no errors) and contains the new stream. A ledger rejection delivered as HTTP 200 still resolves from sendTransaction, carrying its $summary.errors. What to do: if you treated any resolved sendTransaction as success, check isCommitted(response) (new export) instead.
sdk-node importKey validates the key file. It checks the type, the key encodings and lengths, and that the private and public keys belong together. A file that fails now rejects with a clear error where it used to be accepted. What to do: re-export any key file that was assembled by hand or edited.
sdk-web fromHex rejects non-hex characters and odd lengths (an optional 0x is accepted, as in sdk-node). What to do: pass valid hex.
Fixed
sdk-web restoreBIP39Key(..., { validate: false }) rejected a non-BIP-39 phrase that sdk-node accepts, because @scure/bip39 validates inside mnemonicToSeedSync. The seed is now computed with PBKDF2-HMAC-SHA512 directly, so the same phrase gives the same key on both. New export unvalidatedSeed in recovery.
ISummaryObject had no errors, so TypeScript users had to cast $summary. It now has an optional errors?: string[], and the cast in onboardKey is gone.
sdk-node verify threw on a public key OpenSSL cannot load (for example an uncompressed point not on secp256k1). It now returns false, as sdk-web does.
Performance
sdk-node secp256k1 signing parses the private key once per signature instead of twice. Measured on Node 24.19 (500 signs per sample, WSL2): 1.12-1.25 ms to 0.78-0.79 ms per signature. Output is unchanged.
Tests and CI
Coverage for Connection, LedgerEvents, labelledTransaction options, node key file import and export, ASN.1 and the web wrappers.
scripts/smoke-pack.mjs (build, pack and install the three packages into a fresh project) now runs in CI.
Live-network suite for sdk-node, skipped unless AL_NODES and AL_STORAGE are set.
scripts/verify-input-validation.mjs checks that sdk-node and sdk-web agree on input validation, and runs in npm test.