diff --git a/web3-android-mpc-provider/src/main/java/com/web3auth/web3_android_mpc_provider/EthereumTssAccount.java b/web3-android-mpc-provider/src/main/java/com/web3auth/web3_android_mpc_provider/EthereumTssAccount.java index 0d64645..96a5844 100644 --- a/web3-android-mpc-provider/src/main/java/com/web3auth/web3_android_mpc_provider/EthereumTssAccount.java +++ b/web3-android-mpc-provider/src/main/java/com/web3auth/web3_android_mpc_provider/EthereumTssAccount.java @@ -43,7 +43,14 @@ public class EthereumTssAccount { public EthereumTssAccount(EthTssAccountParams params) { ethAccountParams = params; - evmAddress = Keys.toChecksumAddress(Keys.getAddress(params.publicKey)); + String prefix = "04"; + String key; + if (params.publicKey.startsWith(prefix)) { + key = params.publicKey.substring(prefix.length()); + } else { + key = params.publicKey; + } + evmAddress = Keys.toChecksumAddress(Keys.getAddress(key)); } public String signMessage(String message) throws TSSClientError, CustomSigningError {