Closed raphaelahrens closed 2 years ago
The implementation of Debug::fmt in Signature was recursive, since format_args!("{:x?}", self) calls fmt.
Debug::fmt
format_args!("{:x?}", self)
fmt
This can be tested by running
let kp = ed25519_compact::KeyPair::from_seed([42u8; 32].into()); let message = b"Hello, World!"; let signature = kp.sk.sign(message, None); dbg!(&signature);
Good catch, thank you!
The implementation of
Debug::fmt
in Signature was recursive, sinceformat_args!("{:x?}", self)
callsfmt
.This can be tested by running