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

[Rust/Eth]: Replace C++ Ethereum MessageSigner #3458

Merged
merged 42 commits into from
Oct 3, 2023
Merged

[Rust/Eth]: Replace C++ Ethereum MessageSigner #3458

merged 42 commits into from
Oct 3, 2023

Conversation

satoshiotomakan
Copy link
Collaborator

@satoshiotomakan satoshiotomakan commented Sep 29, 2023

Description

Add and implement Ethereum MessageSigner in Rust and integrate it to C++.

How to test

Run Rust, C++, iOS, Android tests

TODO (future improvements)

  • Add TWMessageSignerSign, TWMessageSignerVerify, TWMessageSignePreImageHashes FFI functions;
  • Deprecate TWEthereumMessageSigner* FFIs.
  • Remove C++ Ethereum/ABI/* params

Types of changes

Checklist

  • Create pull request as draft initially, unless its complete.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • If there is a related Issue, mention it in the description.

If you're adding a new blockchain

  • I have read the guidelines for adding a new blockchain.

* TODO: add tests for `TWEthereumAbiDecodeContractCall`
* TODO refactor Ethereum::ABI::FunctionV2: move impl to cpp file
* TODO finish Ethereum::ABI::FunctionV2 with InArray params
* TODO implement TWEthereumAbiFunctionGetType
* Move some tests to Rust
* Add Android tests
* Add ZeroizeOnDrop for secp256k1 and nist256p1 Private keys
* Refactor U256 serializing methods
@satoshiotomakan satoshiotomakan marked this pull request as ready for review September 29, 2023 12:46
@satoshiotomakan satoshiotomakan changed the title [Rust/Eth]: Replace C++ Ethereum ABI implementation [Rust/Eth]: Replace C++ Ethereum MessageSigner Sep 29, 2023
Copy link
Collaborator

@Milerius Milerius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, just few questions.

rust/tw_evm/src/abi/encode.rs Show resolved Hide resolved
src/Ethereum/ABI/Function.cpp Show resolved Hide resolved
@Milerius Milerius merged commit eb2d48f into dev Oct 3, 2023
@Milerius Milerius deleted the s/rust-eth-msg branch October 3, 2023 07:51
@satoshiotomakan satoshiotomakan mentioned this pull request Oct 9, 2023
12 tasks
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

Successfully merging this pull request may close these issues.

2 participants