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
{{ message }}
This repository was archived by the owner on Sep 11, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 11, 2026. It is now read-only.
Fix Keyring serialize and deserialize type signature #128
The type for the keyring deserialize and serialize methods wrongly state that the full keyring state is expected. The deserialize method should accept the serialized state, which is not the same as the keyring state. We should update these methods to expect unknown as the state type.
@Gudahtt were you planning on assigning unknown to both serialize's return type and deserialize's accepted argument? In that case we would probably get rid of the whole State generic since it is only used with serialize and deserialize.
Also, instead of unknown, perhaps it should still be Json?
The type for the keyring
deserializeandserializemethods wrongly state that the full keyring state is expected. The deserialize method should accept the serialized state, which is not the same as the keyring state. We should update these methods to expectunknownas the state type.