我们可以使用给定的字符串模式创建 XRP 帐户地址并使用校验和完成其余部分吗?
我们可以使用给定的字符串模式创建 XRP 帐户地址并使用校验和完成其余部分吗?
例如:如果我们想创建一个包含特定字符串模式(如“xxtomxxjerry”)的 XRP 帐户地址。我们能否找到一种方法在任何 XRPL 相关的 javascript 库中创建这样的帐户地址?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XRP 账本中的账户地址是
base58
编码的公钥表示。公钥是曲线上的有效点,有时位于曲线的特定子组内(当曲线不是素数阶时)。
XRP 支持 edwards25519 和 secp256k1 曲线。
通过曲线生成器(或子组生成器)与加密安全随机数(大约为
2^256
)的标量相乘,您可以到达公共点(这是确定性的,但不可预测)。因此,要回答您的问题......在一个紧密的循环中,您需要:
0
和2^256
之间的加密安全随机数。base58
编码),以达到地址值。最终您会找到符合您要求的具体地址。超过几个字符将需要很长时间,当然这取决于您的硬件。
Account addresses in the XRP Ledger are
base58
encoded 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
edwards25519
andsecp256k1
curves.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:
0
and2^256
.base58
encoding), 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.