Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取BTG的交易,使用冷钱包签名有问题 #35

Closed
ysy opened this issue Dec 26, 2017 · 2 comments
Closed

获取BTG的交易,使用冷钱包签名有问题 #35

ysy opened this issue Dec 26, 2017 · 2 comments

Comments

@ysy
Copy link

ysy commented Dec 26, 2017

冷钱包扫描了交易二维码以后,没有反应。

似乎是 class QRCodeTxTransport 中的 formatQRCodeTransport 没有对非BTC地址的TX做处理。

isAddressHex 如果非BTC地址返回false

private static boolean isAddressHex(String str) {
    System.out.println("Is Address check, " + str);
    boolean isAddress = false;
    if (str.length() % 2 == 0) {
        try {
            String address = Base58.hexToBase58WithAddress(str);
            isAddress = Utils.validBicoinAddress(address);
            System.out.println(isAddress);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
@ysy
Copy link
Author

ysy commented Dec 26, 2017

补充:冷热钱包都是Android 1.7.8 版本,密钥是普通私钥,不是HD的。

@lujunZhang
Copy link
Contributor

升级最新版到1.8.0,这个地址校验问题之前版本已经修复

@ysy ysy closed this as completed Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants