mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 12:39:37 +00:00
attempt to decode signatures with base64
This commit is contained in:
parent
843cff4cdf
commit
c36e91237c
1 changed files with 7 additions and 1 deletions
|
@ -1246,7 +1246,13 @@ abstract class ElectrumWalletBase
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
final sigDecodedBytes = hex.decode(signature);
|
List<int> sigDecodedBytes = [];
|
||||||
|
|
||||||
|
if (signature.endsWith('=')) {
|
||||||
|
sigDecodedBytes = base64.decode(signature);
|
||||||
|
} else {
|
||||||
|
sigDecodedBytes = hex.decode(signature);
|
||||||
|
}
|
||||||
|
|
||||||
if (sigDecodedBytes.length != 64 && sigDecodedBytes.length != 65) {
|
if (sigDecodedBytes.length != 64 && sigDecodedBytes.length != 65) {
|
||||||
throw ArgumentException(
|
throw ArgumentException(
|
||||||
|
|
Loading…
Reference in a new issue