Can we create XRP account address with a given string pattern and complete the rest with the checksum?
For example: If we want to create an XRP account address that includes a particular string pattern like "xxtomxxjerry". Can we find an approach to creating such an account address in any XRPL related javascript library?
Account addresses in the XRP Ledger are
base58encoded public-key representations.The public-key is a valid point on the curve, sometimes inside a specific subgroup of the curve (when the curve isn't prime order).
XRP supports both
edwards25519andsecp256k1curves.You reach the public point (which is deterministic but not predictable), by scalar multiplication of the curves generator (or subgroups generator) with a cryptographically secure random number which is approximately of the order
2^256.So to answer your question... in a tight loop you need to:
0and2^256.base58encoding), to reach the address value.Eventually you will find a specific address which matches your requirement. More than a few characters will take a long time, predicated of course on your hardware.