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

go sdk 使用国密生成的账号,在进行 EVM 与 Xchain 地址互转时结果不一致 #64

Open
superlitian opened this issue Jul 11, 2022 · 0 comments

Comments

@superlitian
Copy link
Contributor

superlitian commented Jul 11, 2022

add, _, _ := account.XchainToEVMAddress("qzuppnp2ZESdFf5Nd5AnDTWtBCASgg3cG")
fmt.Println(add)
fmt.Println("qzuppnp2ZESdFf5Nd5AnDTWtBCASgg3cG")

// outpt
1979D7D9326E313BFC3440523D68A417196B50BD
qzuppnp2ZESdFf5Nd5AnDTWtBCASgg3cG
add, _, _ := account.EVMToXchainAddress("1979D7D9326E313BFC3440523D68A417196B50BD")
fmt.Println(add)
fmt.Println("qzuppnp2ZESdFf5Nd5AnDTWtBCASgg3cG")

// outpt
SfJqiVXKNmZopWzMCjrJ6BjFfwDgZAApV
qzuppnp2ZESdFf5Nd5AnDTWtBCASgg3cG
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

1 participant