Repository navigation
v2026.11.11
-
Error messages no longer carry bytes of a value refused as a
signature, which may be a private key passed in the wrong place
(closes #495, closes #503, closes #511). In v2026.11.8 the
EccValueErrormessage printed bytes of it:dsa.Sig.parseprinted the DER tags it found, the length octets,
the size a long length announced and the length of the r,s data,
anddsa.Sig.assert_valid, whichparsereaches, printed the whole
r or s it refused;ssa.Sig.assert_valid, whichssa.Sig.parsereaches, printed the
whole r or s it refused;borromean.BorromeanSig.assert_valid, whichBorromeanSig.parse
reaches, printed the whole s it refused.
Each message now says what is wrong without printing the value:
scalar s not in 0..n-1: 'FFFFFFFF …'becomesscalar s not in 0..n-1. Each keeps the text before its colon, except
non-canonical DER length: 5 encoded in 3 bytes, which becomes
non-canonical DER length of 3 bytes. The exception is still
EccValueError.Act on it if your code matches these messages: match the text before
the colon, since the text after it changed. For
non-canonical DER length, match that text itself, which both the old
and the new form start with.Act on it if you log these errors: in a log written with any release
up to v2026.11.8, a refusal of the functions listed above may be
followed by bytes of the refused value, in hex or in decimal. Treat
each such line as possibly holding key material, and find them by the
text of each message before its colon.
CHANGELOG.md's own v2026.11.11 section has the rest.