summaryrefslogtreecommitdiff
path: root/bip-0062.mediawiki
diff options
context:
space:
mode:
Diffstat (limited to 'bip-0062.mediawiki')
-rw-r--r--bip-0062.mediawiki4
1 files changed, 3 insertions, 1 deletions
diff --git a/bip-0062.mediawiki b/bip-0062.mediawiki
index 9d5bfe5..4e5653b 100644
--- a/bip-0062.mediawiki
+++ b/bip-0062.mediawiki
@@ -63,7 +63,9 @@ Below is a summary of the effects on signatures, their encoding and data pushes.
The value S in signatures must be between 0x1 and 0x7FFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 5D576E73 57A4501D DFE92F46 681B20A0 (inclusive). If S is too high, simply replace it by S' = 0xFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141 - S.
-The constraints on the value R is unchanged w.r.t. ECDSA, and can be between 0x1 and 0xFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364140 (inclusive).
+Signatures produced by the OpenSSL library are not guaranteed to be consistent with this constraint. Version 0.9.3 of the reference client provides [https://github.com/bitcoin/bitcoin/blob/0.9.3/src/key.cpp#L202-L227 an example] for detection and correction.
+
+The constraints on the value R are unchanged w.r.t. ECDSA, and values can be between 0x1 and 0xFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364140 (inclusive).
====DER encoding====
For reference, here is how to encode signatures correctly in DER format.