mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 15:02:17 +01:00
Hopefully finally fixed the P2PKHScriptSignature bug
This commit is contained in:
parent
cfa5baec72
commit
cab77ed835
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ object P2PKHScriptSignature extends ScriptFactory[P2PKHScriptSignature] {
|
||||||
def isP2PKHScriptSig(asm: Seq[ScriptToken]): Boolean = asm match {
|
def isP2PKHScriptSig(asm: Seq[ScriptToken]): Boolean = asm match {
|
||||||
case List(w : BytesToPushOntoStack, x : ScriptConstant, y : BytesToPushOntoStack,
|
case List(w : BytesToPushOntoStack, x : ScriptConstant, y : BytesToPushOntoStack,
|
||||||
z : ScriptConstant) =>
|
z : ScriptConstant) =>
|
||||||
!P2SHScriptSignature.isRedeemScript(z)
|
if (ECPublicKey.isFullyValid(z.bytes)) true
|
||||||
|
else !P2SHScriptSignature.isRedeemScript(z)
|
||||||
case _ => false
|
case _ => false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue