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

feat(grpc): add Ed25519 to AddressType proto #1492

Merged

Conversation

maxipaz
Copy link
Contributor

@maxipaz maxipaz commented Aug 28, 2024

Description

Adding Ed25519 to AddressType proto

Related issue(s)

@maxipaz maxipaz requested a review from b00f August 28, 2024 16:34
@maxipaz maxipaz self-assigned this Aug 28, 2024
@@ -55,6 +55,9 @@ enum AddressType {
ADDRESS_TYPE_VALIDATOR = 1;
// Account address type with BLS signature scheme.
ADDRESS_TYPE_BLS_ACCOUNT = 2;
// Account address type with Ed25519 signature scheme.
// Note: Generating a new Ed25519 address requires the wallet password.
ADDRESS_TYPE_ED25519_ACCOUNT = 3;
Copy link
Contributor

@Ja7ad Ja7ad Aug 29, 2024

Choose a reason for hiding this comment

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

@b00f For this type need to get wallet password in the message GetNewAddressRequest?

Copy link
Collaborator

@b00f b00f Aug 30, 2024

Choose a reason for hiding this comment

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

Yes, We need the password to derive a new address. The reason is explained here:

// For ed25519 and curve25519 the private keys are no longer multipliers for the group generator;
// instead the hash of the private key is the multiplier.
// For this reason, our scheme for ed25519 and curve25519 does not support public key derivation and
// uses the produced hashes directly as private keys.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the password to the GetNewAddress input. Please review again

@maxipaz maxipaz force-pushed the feature/add-ed25519-address-type branch from 3ad2178 to cb380d3 Compare September 2, 2024 11:30
@maxipaz maxipaz requested a review from Ja7ad September 2, 2024 11:44
@Ja7ad
Copy link
Contributor

Ja7ad commented Sep 2, 2024

@maxipaz Thank you

@Ja7ad Ja7ad merged commit 5752032 into pactus-project:main Sep 2, 2024
10 checks passed
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