Fix TaprootKeyPath.isValid for 64 byte sigs (#4444)

This commit is contained in:
benthecarman 2022-07-02 05:02:47 -05:00 committed by GitHub
parent 0c14fc961b
commit 93302fea01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,7 +281,7 @@ object TaprootKeyPath {
}
def isValid(stack: Vector[ByteVector]): Boolean = {
stack.length == 1 && (stack.length == 64 || stack.head.length == 65)
stack.length == 1 && (stack.head.length == 64 || stack.head.length == 65)
}
}