Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

Fix Keyring serialize and deserialize type signature #128

Description

@Gudahtt

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.

Activity

  1. changed the title [-]Fix Keyring `deserialize` type signature[/-] [+]Fix Keyring `serialize` and `deserialize` type signature[/+] on Aug 4, 2023
  2. mikesposito commented on Jan 30, 2025

    @mikesposito
    Member

    @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?

  3. Gudahtt commented on Feb 3, 2025

    @Gudahtt
    MemberAuthor

    Agreed that we don't seem to have a need for that generic anymore.

    And yes, you're right, Json does seem safe to assume here.

  4. added a commit that references this issue on Feb 5, 2025
    368a7c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions