Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serialization to the account classes #571

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

heliuchuan
Copy link
Contributor

@heliuchuan heliuchuan commented Nov 10, 2024

Description

This adds serialization to all the account classes. Clients that use Keyless will want to support the ability to add backup keys or turn the account into a multikey. This allows clients to cache the account agnostic of the actual signing method impl underneath. i.e., caching a MultiKeyAccount and KeylessAccount can work the same and use Account.deserialize

Test Plan

Added unit tests

Checklist

  • Have you ran pnpm fmt?
  • Have you updated the CHANGELOG.md?

@heliuchuan heliuchuan requested a review from a team as a code owner November 10, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant