Skip to content

Add Ed25519KeyPair to simplify signing for aptos/ton/sui#1055

Merged
0xh3rman merged 3 commits intomainfrom
ed25519-key-pair
Apr 6, 2026
Merged

Add Ed25519KeyPair to simplify signing for aptos/ton/sui#1055
0xh3rman merged 3 commits intomainfrom
ed25519-key-pair

Conversation

@0xh3rman
Copy link
Copy Markdown
Collaborator

@0xh3rman 0xh3rman commented Apr 6, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors Ed25519 signing by introducing an Ed25519KeyPair struct in the signer crate and replacing the previous Signer::sign_ed25519_with_public_key method across the Aptos, Sui, and Ton crates. The new struct encapsulates both signing and public key derivation. Feedback suggests optimizing the sign method to return a fixed-size array instead of a Vec to avoid unnecessary heap allocations.

@0xh3rman 0xh3rman merged commit 2e04684 into main Apr 6, 2026
4 checks passed
@0xh3rman 0xh3rman deleted the ed25519-key-pair branch April 6, 2026 05:06
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