Skip to content

Add restore (#11)#18

Open
kibernetikos wants to merge 1 commit intoArgyle-Software:masterfrom
kibernetikos:feature/keypair_constructor
Open

Add restore (#11)#18
kibernetikos wants to merge 1 commit intoArgyle-Software:masterfrom
kibernetikos:feature/keypair_constructor

Conversation

@kibernetikos
Copy link

Overview:

This Pull Request addresses Issue #11 . The issue highlights the absence of a functionality to save and restore Keypair instances, which is a critical feature for many applications, particularly those requiring key persistence across sessions or environments.

Changes:

  1. Implementation of Keypair::new Method:
  • Following the community member's suggestion, i've implemented the restore method within the Keypair struct. This method allows the creation of a Keypair object from separate byte vectors for the public and private keys.
  • The method is straightforward to use: it takes two Vec arguments, one for the public key and one for the private key, and constructs a Keypair object.
  1. Improving Usability and Flexibility:
  • The addition of the restore method significantly increases the library's usability, particularly in scenarios where keys need to be stored and later reconstructed, such as in distributed systems, backups, or when transferring keys between different parts of a system.

@vladceresna
Copy link

@kibernetikos Do you know, when this will be merged?

@winstonallo
Copy link

winstonallo commented Jun 9, 2025

Hey @mberry , are there any plans to merge this?

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.

3 participants