Open Avamander opened 1 year ago
When trying to generate a valid signature according to RFC3156 I stumbled upon the fact that the last \r\n of the bytes given to sign are stripped.
\r\n
sign
Example:
text = "example text\r\n".encode() signature = sign(text) assert verify(signature, text) == True > AssertionError
Workaround:
text = "example text\r\n".encode() signature = sign(text + "\r\n".encode()) assert verify(signature, text) == True
When trying to generate a valid signature according to RFC3156 I stumbled upon the fact that the last
\r\n
of the bytes given tosign
are stripped.Example:
Workaround: