Skip to content

Dev#230

Merged
abolfazlbeh merged 5 commits intomainfrom
dev
Feb 18, 2026
Merged

Dev#230
abolfazlbeh merged 5 commits intomainfrom
dev

Conversation

@abolfazlbeh
Copy link
Contributor

No description provided.

- Add comprehensive tests demonstrating correct BSC address generation
- Clarify that Network parameter does not affect EVM address generation
- Document that ExtendedPrivateKey.to_string() returns xprv/tprv format, not EVM addresses
- Show that BSC mainnet and testnet use the same addresses (ChainId distinguishes them)
- Add test proving Network::BitcoinMainnet and Network::BitcoinTestnet produce identical EVM addresses
- Include examples of proper BSC address derivation using Bip44Signer

Tests added:
- crates/bip44/tests/bsc_address_test.rs
- crates/khodpay-signing/tests/bsc_address_generation_test.rs

This addresses confusion where users might expect different addresses for testnet
when using Network::BitcoinTestnet, but EVM chains ignore the Network parameter
and only use ChainId for network differentiation.
…ration-fix2

Add BSC address generation tests and documentation
- Add eip712 module: generic Eip712Type trait, Eip712Domain builder,
  hash/sign/verify typed data, ABI encoding helpers
- Add erc4337 module: PackedUserOperation v0.7 builder, hash/sign/verify,
  ENTRY_POINT_V07 constant
- Add 21 integration tests (PaymentIntent + UserOperation WPGP scenario)
- Update lib.rs docs with module overview and quick-start examples
- Update README with EIP-712 and ERC-4337 sections
- Bump khodpay-signing version 0.1.0 -> 0.2.0
- Update CHANGELOG for v0.5.0
@abolfazlbeh abolfazlbeh self-assigned this Feb 18, 2026
- Prefix unused sig_mainnet/sig_testnet vars with _ in bsc_address_generation_test.rs
- Fix clippy::unnecessary_unwrap in bip32/src/public_key.rs (use if let Err)
- Run cargo fmt --all across workspace
@abolfazlbeh abolfazlbeh merged commit c812886 into main Feb 18, 2026
11 checks passed
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.

1 participant