TODO: finish and add tests. was just something i had on my local git stash.
No extra line
Fixing the badge url to point to master branch
OP_0 as signature should fail before parse_sig
the previous fix was wrong. op_0 must not be dropped, but be used as signature and fail then because of the length check.