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

TON address generate is wrong #4063

Closed
deeryoona opened this issue Oct 15, 2024 · 7 comments · Fixed by #4067
Closed

TON address generate is wrong #4063

deeryoona opened this issue Oct 15, 2024 · 7 comments · Fixed by #4067
Labels
bug Something isn't working

Comments

@deeryoona
Copy link

version:4.1.10
switf exapple code is:
func testAddressFromPrivateKey() {
let data = Data(hexString: "63474e5fe9511f1526a50567ce142befc343e71a49b865ac3908f58667319cb8")
let privateKey = PrivateKey(data: data!)!
let publicKey = privateKey.getPublicKeyEd25519()
let address = AnyAddress(publicKey: publicKey, coin: .ton)

when i test this method,the result is EQBm--PFwDv1yCeS-QTJ-L8oiUpqo9IT1BwgVptlSq3ts90Q,
not UQBm--PFwDv1yCeS-QTJ-L8oiUpqo9IT1BwgVptlSq3ts4DV

@deeryoona deeryoona added the bug Something isn't working label Oct 15, 2024
@satoshiotomakan
Copy link
Collaborator

Hi @deeryoona, do you use CocoaPods or an SPM packet? We didn't update CocoaPods for some time, I'll schedule the update this week

@deeryoona
Copy link
Author

i use SPM packet

@deeryoona
Copy link
Author

Hi @deeryoona, do you use CocoaPods or an SPM packet? We didn't update CocoaPods for some time, I'll schedule the update this week

i use SPM packet

@deeryoona
Copy link
Author

@deeryoona
Copy link
Author

Hi @deeryoona, do you use CocoaPods or an SPM packet? We didn't update CocoaPods for some time, I'll schedule the update this week

i updated the latest version 4.1.12,the problem already exist @satoshiotomakan

@satoshiotomakan
Copy link
Collaborator

Hi @deeryoona, could you please update to 4.1.13? Now you should have all changes.
We haven't updated our SPM packages since 4.0.33

@deeryoona
Copy link
Author

Hi @deeryoona, could you please update to 4.1.13? Now you should have all changes. We haven't updated our SPM packages since 4.0.33

this proble solved,thanks,satoshiotomakan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants