Bitcoin protocol specification, test vectors and test cases.