Fixed a problem in the verification of the Public Key compression verification

parent ca6b9a67
......@@ -2303,7 +2303,7 @@ public class Script {
if (sigBytes.length != 33) return false;
// Non-canonical public key: invalid prefix for compressed key
if (sigBytes[0] == 0x02 || sigBytes[0] == 0x03) return false;
if (sigBytes[0] != 0x02 && sigBytes[0] != 0x03) return false;
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment