occasionally on Android, we generate an ECDSA signature. This turns out to have a length "r" of 31 bytes. Is it valid?
For reference, here is a beautiful diagram describing the ASN.1 structure of such a signature:
how do you find the r and s of a signature using python