trustwallet / wallet-core

Cross-platform, cross-blockchain wallet library.
https://developer.trustwallet.com/wallet-core
Apache License 2.0
2.86k stars 1.6k forks source link

[TON]: Add `CryptoBoxSecretKey` FFIs to create from Bytes, get Bytes #3977

Closed satoshiotomakan closed 3 months ago

satoshiotomakan commented 3 months ago

Description

Add CryptoBoxSecretKey.isValid(Data), CryptoBoxSecretKey(Data), CryptoBoxSecretKey.data()

How to test

Run Rust, iOS, Android, C++ tests

Types of changes

Checklist

If you're adding a new blockchain

github-actions[bot] commented 3 months ago

Binary size comparison

➡️ aarch64-apple-ios:

- 12.02 MB
+ 12.02 MB   +3 KB

➡️ aarch64-apple-ios-sim:

- 12.02 MB
+ 12.03 MB   +2 KB

➡️ aarch64-linux-android:

- 15.39 MB
+ 15.39 MB   +4 KB

➡️ armv7-linux-androideabi:

- 13.16 MB
+ 13.16 MB   +3 KB

➡️ wasm32-unknown-emscripten:

- 10.89 MB
+ 10.90 MB   +3 KB