简体   繁体   English

我们可以使用给定的字符串模式创建 XRP 帐户地址并使用校验和完成 rest 吗?

[英]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 同时支持edwards25519secp256k1曲线。

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:所以要回答你的问题......在一个紧密的循环中你需要:

  1. Generate a cryptographically secure random number between 0 and 2^256 .生成02^256之间的加密安全随机数。
  2. Execute scalar multiplication of this random number by the appropriate group generator.通过适当的组生成器执行此随机数的标量乘法。
  3. Take the resultant raw curve point and follow the XRP spec (including base58 encoding), to reach the address value.取生成的原始曲线点并遵循 XRP 规范(包括base58编码),以达到地址值。
  4. Inspect the generated address for desired vanity properties.检查生成的地址以获取所需的虚荣属性。
  5. If target is reached, break and securely store the scalar.如果达到目标,则中断并安全地存储标量。

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.

相关问题 我们如何创建一个按钮,它运行我们给定的功能并接受给定的输入并执行我们给定的任务? - How can we create a button, that runs the function we have given and takes the input given and performs tasks that we have given? 我们如何在单击时将 Div 用作完整按钮将激活 rest 其他 div 将处于非活动状态 - How can we use Div as a complete button when click it would get active rest other div will be inactive 如何在 Node JS 中生成和验证给定字符串的校验和 - How to Generate and Verify Checksum of the given string in Node JS 为什么我不能从给定的字符串创建一个新的Date()? - why I can't create a new Date() from given string? 我们如何在 typescript 中创建带有前缀/后缀单词的字符串类型? - How can we create a string type with prefix/suffix word in typescript? 如何动态创建 REST api 查询字符串? - How can I dynamically create an REST api query string? 给定一个输入字符串,我们如何在 Javascript 中识别其内容的数据类型? - Given an input string, how can we identify the data type of its content in Javascript? 检查字符串是否遵循javascript中的给定模式 - checking if a string follows a given pattern in javascript 检测给定的三个单词字符串中的连字符模式 - Detect pattern of hyphens in the given string of three words 用给定字符串模式中的值替换对象键 - Replace object keys with values in given string pattern
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM