Skip to content

Implement Keypair Serialization Utility #395

Description

@codeZe-us

Security is paramount for non-custodial wallet management. Ed25519 KeyPair serialization, recovery, and retrieval must be handled securely in memory using secure encoding practices to prevent key leakage while saving/retrieving to platform secure storage.

Implementation guidelines:

  • Write a utility class StellarKeypairSerializer containing methods to securely serialize a KeyPair to/from private keys or seeds.
  • Connect the utility to SecureStorageService to write and retrieve keypair data securely.
  • Implement zero-memory wipe techniques (e.g. overwriting variables, garbage collection prompts) to avoid key residue remaining in the device RAM.
  • Prevent exposure of private keys through logging or debugging tools.

Files location: mobile/lib/core/services/keypair_serialization_service.dart, secure_storage_service.dart

Expected result: KeyPairs are encrypted/decrypted securely using hardware-backed storage (Keystore/Keychain) and serialized/deserialized through a robust utility, protecting critical wallet secrets.

Join the contributor Telegram group and ask any questions: https://t.me/+8mSQnieRmIM1Yjc0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions