diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index a18ebb76a..64147e984 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -1246,7 +1246,13 @@ abstract class ElectrumWalletBase return false; } - final sigDecodedBytes = hex.decode(signature); + List sigDecodedBytes = []; + + if (signature.endsWith('=')) { + sigDecodedBytes = base64.decode(signature); + } else { + sigDecodedBytes = hex.decode(signature); + } if (sigDecodedBytes.length != 64 && sigDecodedBytes.length != 65) { throw ArgumentException(