-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[TON]: Add support for TON 24-words mnemonic #3998
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cbfd1a1
feat(ton): Add support for TON 24-words mnemonic in Rust
satoshiotomakan e762f64
feat(ton): Add tw_ton_wallet FFIs
satoshiotomakan a256fd9
feat(ton): Add TWTONWallet FFI in C++
satoshiotomakan 79b4ca9
feat(ton): Add tonMnemonic StoredKey type
satoshiotomakan 0da5ee4
feat(ton): Add StoredKey TON tests
satoshiotomakan db225c6
feat(ton): Add TWStoredKey TON tests
satoshiotomakan 5aa0827
feat(ton): Add TONWallet support in Swift
satoshiotomakan f6494d3
feat(ton): Add `KeyStore` iOS tests
satoshiotomakan e22de4c
feat(ton): Add TONWallet support in JavaScript
satoshiotomakan 7640110
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan d819e4d
feat(ton): Remove `TonMnemonic` structure, replace with a `validate_m…
satoshiotomakan 845ad51
[CI] Trigger CI
satoshiotomakan 098d541
feat(ton): Fix rustfmt
satoshiotomakan 5544ed2
feat(ton): Fix C++ build
satoshiotomakan d465c78
feat(ton): Fix C++ build
satoshiotomakan 6025f72
feat(ton): Fix C++ build
satoshiotomakan c8f1261
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan 87695d4
feat(ton): Fix C++ address analyzer
satoshiotomakan 93d661d
feat(ton): Fix C++ tests
satoshiotomakan efb6e22
feat(ton): Add Android tests
satoshiotomakan 179b351
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan 6c60df2
feat(ton): Bump `actions/upload-artifact` to v4
satoshiotomakan 7923ce5
feat(eth): Fix PR comments
satoshiotomakan 026e367
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan 2164d3e
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan 9bfc1d1
Merge branch 'master' into s/ton-mnemonic
satoshiotomakan 5f55b56
Merge branch 'dev' into s/ton-mnemonic
satoshiotomakan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
| // Copyright © 2017 Trust Wallet. | ||
|
|
||
| use crate::H512; | ||
| use sha2::Sha512; | ||
|
|
||
| pub fn pbkdf2_hmac_sha512(password: &[u8], salt: &[u8], rounds: u32) -> H512 { | ||
| pbkdf2::pbkdf2_hmac_array::<Sha512, { H512::LEN }>(password, salt, rounds).into() | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.