Document a pair of panics requiring 256 GB of RAM/4 GB of a context

This commit is contained in:
Luke Parker
2023-04-24 23:49:06 -04:00
parent 7a8f8c2d3d
commit 09d96822ca
3 changed files with 6 additions and 0 deletions

View File

@@ -89,6 +89,8 @@ impl<C: Ciphersuite> SchnorrAggregate<C> {
}
/// Write a SchnorrAggregate to something implementing Write.
///
/// This will panic if more than 4 billion signatures were aggregated.
pub fn write<W: Write>(&self, writer: &mut W) -> io::Result<()> {
writer.write_all(
&u32::try_from(self.Rs.len())