[英]Can we create XRP account address with a given string pattern and complete the rest with the checksum?
Can we create XRP account address with a given string pattern and complete the rest with the checksum?我们可以使用给定的字符串模式创建 XRP 帐户地址并使用校验和完成 rest 吗?
For example: If we want to create an XRP account address that includes a particular string pattern like "xxtomxxjerry".例如:如果我们想要创建一个包含特定字符串模式(如“xxtomxxjerry”)的 XRP 帐户地址。 Can we find an approach to creating such an account address in any XRPL related javascript library?
我们能否在任何与 XRPL 相关的 javascript 库中找到创建此类帐户地址的方法?
Account addresses in the XRP Ledger are base58
encoded public-key representations. XRP 分类帐中的帐户地址是
base58
编码的公钥表示。
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
and secp256k1
curves. XRP 同时支持
edwards25519
和secp256k1
曲线。
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
.通过曲线生成器(或子组生成器)与大约
2^256
阶的加密安全随机数的标量乘法,您可以到达公共点(确定性但不可预测)。
So to answer your question... in a tight loop you need to:所以要回答你的问题......在一个紧密的循环中你需要:
0
and 2^256
.0
到2^256
之间的加密安全随机数。base58
encoding), to reach the address value.base58
编码),以达到地址值。 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.
超过几个字符将需要很长时间,当然这取决于您的硬件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.