This repository was archived by the owner on Oct 7, 2024. It is now read-only.
13.0.0
Added
- Added
KeyringControllerPersistentStatetype which includes only persistent state, an optional string property with keyvault(#247) - Added
KeyringObjecttype for how keyrings are represented inmemStore(#247)
Changed
- BREAKING: Add types for store and fix type discrepancies (#247)
- BREAKING: Constructor parameter
KeyringControllerArgsfields changed (#247): - BREAKING: type of
storeandmemStorepublic properties changed (#247):KeyringController.storeis now anObservableStore<KeyringControllerPersistentState>KeyringController.memStoreis now anObservableStore<KeyringControllerState>
- BREAKING:
updateMemStoreKeyringsmethod return type changed toPromise<void>(#247) - BREAKING:
KeyringControllerStatetype changed to include only non-persistent state (#247):- Now
undefinedis used instead ofnullwhenencryptionKeyandencryptionSaltare unset keyringsis now of typeKeyringObject[]instead ofKeyring<Json>password,store,memStorehave been removed - note that in practice this change only affects types- This changes cause the following methods also to change the return type:
createNewVaultAndKeychaincreateNewVaultAndRestoresetLockedsubmitPasswordsubmitEncryptionKeyaddNewAccountremoveAccountfullUpdate
- Now
- BREAKING: When constructing a simple keyring with
addNewKeyring, the second parameter (opts) is now expected to be an array of private keys rather than an object with aprivateKeysproperty (#253) - Restored support for keyrings with non-object serialized state (#253)
- Narrow return type of
signTypedMessageand encryption methods (#249)- The methods
signTypedMessage,getEncryptionPublicKey, anddecryptMessagenow returnstringrather thanBytes
- The methods