RippleX, the team responsible for the development and support of XRP Ledger, has recently unveiled an exciting upgrade to the XRP Ledger Python library, xrpl-py. In an announcement via Twitter, RippleX introduced the release of xrpl-py 2.0, the latest version of the Python library.
The highlight of xrpl-py 2.0 is the revamped Wallet class, which offers users the flexibility to store their keys in any desired format. This enhancement allows for seamless autofill, signing, and submission of transactions, all within a single function called “submit_and_wait.”
Introducing xrpl-py 2.0: Enhancements & New Features
According to the official blog post, the introduction of xrpl-py version 2.0.0 brings about various improvements and new features, particularly for the Wallet class.
However, it’s worth noting that this update includes several breaking changes that necessitate modifications to existing code. To ensure a smooth transition, RippleX has provided a migration guide that assists developers in navigating these changes.
The breaking changes encompass simplifications in the signing and submitting functions. One notable modification is the replacement of the send_reliable_submission function with submit_and_wait.
Additionally, function names for submit_transaction and safe_sign_…_transaction have been shortened.
Furthermore, the parameter order for autofill_and_sign and sign_and_submit functions has been updated to align with submit_and_wait.
The Wallet class has undergone a significant revamp as well. Notable changes include the removal of the sequence field, the adoption of the faster Ed25519 cryptographic algorithm as the default, and the inclusion of various methods for key representation (such as XLS-12 Secret Numbers).
Seed generation now utilizes hex strings instead of UTF-8 strings, allowing for a broader range of random input possibilities.
Among the other fixes introduced in version 2.0.0, the AccountSetFlags have been split into two separate enums: AccountSetAsfFlags and AccountSetFlags. This division resolves a bug where both types of flags were combined into a single enum.
Additionally, the sign method has been made synchronous by removing the check_fee parameter, ensuring a more streamlined and efficient process.
The latest version 2.0.0, with its comprehensive improvements and enhancements, marks a significant step forward for developers utilizing XRP Ledger Python library.
However, RippleX’s commitment to providing a more user-friendly experience and enhanced functionality showcases their dedication to advancing the capabilities of the XRP Ledger ecosystem.
Related Reading | Countdown Begins: Shiba Inu’s Shibarium Mainnet Launch Revealed