This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
13.0.0
Added
- Added
KeyringControllerPersistentState
type which includes only persistent state, an optional string property with keyvault
(#247) - Added
KeyringObject
type for how keyrings are represented inmemStore
(#247)
Changed
- BREAKING: Add types for store and fix type discrepancies (#247)
- BREAKING: Constructor parameter
KeyringControllerArgs
fields changed (#247): - BREAKING: type of
store
andmemStore
public properties changed (#247):KeyringController.store
is now anObservableStore<KeyringControllerPersistentState>
KeyringController.memStore
is now anObservableStore<KeyringControllerState>
- BREAKING:
updateMemStoreKeyrings
method return type changed toPromise<void>
(#247) - BREAKING:
KeyringControllerState
type changed to include only non-persistent state (#247):- Now
undefined
is used instead ofnull
whenencryptionKey
andencryptionSalt
are unset keyrings
is now of typeKeyringObject[]
instead ofKeyring<Json>
password
,store
,memStore
have been removed - note that in practice this change only affects types- This changes cause the following methods also to change the return type:
createNewVaultAndKeychain
createNewVaultAndRestore
setLocked
submitPassword
submitEncryptionKey
addNewAccount
removeAccount
fullUpdate
- 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 aprivateKeys
property (#253) - Restored support for keyrings with non-object serialized state (#253)
- Narrow return type of
signTypedMessage
and encryption methods (#249)- The methods
signTypedMessage
,getEncryptionPublicKey
, anddecryptMessage
now returnstring
rather thanBytes
- The methods