mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Document a pair of panics requiring 256 GB of RAM/4 GB of a context
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user