Notable Changes
Wallet merge
Wallets have been merged into a single class for simplicity's sake. Now, the create() and import() static methods have a type parameter to indicate the algorithm to use when generating the wallet seed, either 'BIP-44' or 'BLAKE2b'. Ledger wallets are still supported and extend the base Wallet class for its additional implementation details, but the API is largely shared between the two.
Wallet security
Security has been improved by removing wallet secrets from the main thread entirely. All sensitive actions - seed generation, account derivation, signing - happen within the isolated Web Worker introduced in v0.1, and the mnemonic and seed are never available for export. The only exception is when calling create() so that they can be backed up; after they are accessed once, the data self-destructs and can only be accessed by the wallet itself and its isolated worker environment. The wallet is unlocked with a password as usual and will now automatically relock after 5 minutes.
Account handling
Accounts can still be imported via private keys, but only the public keys are retained. Signing should happen using a Wallet or by passing a key directly to a block.
Other Changes
Pretty much every other component has been refactored or improved to accommodate the new wallet system.
Comments