简体   繁体   English

将小写的加密钱包地址转换为正确的格式

[英]Convert crypto wallet address in lowercase to correct format

I'm collecting many types of cryptocurrency address(eg btc,trx,eth), but some address are came with address.lowercase . 我正在收集许多类型的加密货币地址(例如btc,trx,eth),但是address.lowercase附带了一些地址。 I want to correct them. 我要纠正它们。

In case of ethereum, if I use eip55 in lowercase eth address, I can correct them. 在以太坊的情况下,如果我在小写的eth地址中使用eip55,则可以对其进行更正。 But in the other case, I can't. 但是在另一种情况下,我不能。

There are any method to correct them? 有什么方法可以纠正它们? Example : rabesxxx7qq1rdboxxzhhjaksyw19jptmt(XRP) -> raBesxXx7QQ1RdboXXZHhjaKSyW19JptMt(correct address) 示例:rabesxxx7qq1rdboxxzhhjaksyw19jptmt(XRP)-> raBesxXx7QQ1RdboXXZHhjaKSyW19JptMt(正确的地址)

I believe that XRP addresses are base58 encoded, so converting to lowercase is a lossy operation. 我相信XRP地址是base58编码的,因此转换为小写字母是有损操作。 ("rabesx" and "raBesx" are two different numbers.) I don't see how you can "correct" that. (“ rabesx”和“ raBesx”是两个不同的数字。)我看不到如何“更正”该数字。

There is a checksum at the end that can help detect corruptions like this, but there are too many combinations of uppercase/lowercase to try them all until you found a working one. 末尾有一个校验和,可以帮助检测类似的损坏,但是大写/小写的组合太多,无法一一尝试,直到找到可用的为止。

In short, by the time you've received an address that has been converted to lowercase, it's too late. 简而言之,当您收到地址已转换为小写字母时,已经太迟了。 You need to address the issue with whatever process is giving you these corrupted addresses. 您需要通过任何给您这些损坏地址的过程来解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM