1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

Merge pull request #527 from comboy/bip66-dead-link

fix dead link in BIP66
This commit is contained in:
Luke Dashjr 2017-04-30 19:44:54 +00:00 committed by GitHub
commit a301db099d

View File

@ -37,7 +37,7 @@ These operators all perform ECDSA verifications on pubkey/signature pairs, itera
The following code specifies the behaviour of strict DER checking. Note that this function tests a signature byte vector which includes the 1-byte sighash flag that Bitcoin adds, even though that flag falls outside of the DER specification, and is unaffected by this proposal. The function is also not called for cases where the length of sig is 0, in order to provide a simple, short and efficiently-verifiable encoding for deliberately invalid signatures. The following code specifies the behaviour of strict DER checking. Note that this function tests a signature byte vector which includes the 1-byte sighash flag that Bitcoin adds, even though that flag falls outside of the DER specification, and is unaffected by this proposal. The function is also not called for cases where the length of sig is 0, in order to provide a simple, short and efficiently-verifiable encoding for deliberately invalid signatures.
DER is specified in http://www.itu.int/rec/T-REC-X.690-200811-I/en . DER is specified in https://www.itu.int/rec/T-REC-X.690/en .
<pre> <pre>
bool static IsValidSignatureEncoding(const std::vector<unsigned char> &sig) { bool static IsValidSignatureEncoding(const std::vector<unsigned char> &sig) {