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

Discrepancies in the Address Codec #5148

Open
ckeshava opened this issue Sep 26, 2024 · 0 comments
Open

Discrepancies in the Address Codec #5148

ckeshava opened this issue Sep 26, 2024 · 0 comments
Labels
Feature Request Used to indicate requests to add new features

Comments

@ckeshava
Copy link
Collaborator

Summary

Understanding design decisions in cryptographic key-generation RPCs

Motivation

  1. xrpl.js and xrpl-py SDKs use a different prefix for ed25519 keys, compared to rippled. This difference in the prefixes is not documented and the reasons are unknown for this difference in behavior.

Except for a code comment alluding to this historical discrepancy, I couldn't learn much about these prefixes.

The above check in rippled suffices to preserve backwards compatibility. Is there any need to retain the differing prefix in the client SDKs? For the sake of uniformity, can we unify the behavior of rippled and the client SDKs ?

  1. wallet_propose RPC could use certain updates in its behavior.
  • Add CLI support ed25519 keys
  • Set ed25519 as the default signing algorithm instead of secp256k1 (which is the current default). This behavior is at odds with that of xrpl-py and xrpl.js SDKs, where ed25519 algorithm was set as the default, owing to its merits over secp256k1
  1. Differing API design for wallet_propose and validation_create RPCs: While wallet_propose supports both secp256k1 and ed25519 cryptographic algorithms, validation_create RPC only supports the former. Is there a reason for this design choice? I believe ed25519 keys can be used for creating/signing validations.
@ckeshava ckeshava added the Feature Request Used to indicate requests to add new features label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Used to indicate requests to add new features
Projects
None yet
Development

No branches or pull requests

1 participant