Closed wizardofozzie closed 8 years ago
Since BIP66 activated over the weekend, any transaction containing BER-encoded signatures will not be accepted by the Bitcoin network. Roughly half of the signatures generated by PyBitcoinTools will be deemed invalid without this PR.
Testing fails if the ecdsa_raw_sign
changes s
to low s. Instead I've implemented der_encode_sig
to check for:
@vbuterin Is it best to implement the code at this PR while also fixing ecdsa_raw_sign
to return low s?
Return low S as per https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#low-s-values-in-signatures