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

@@ -60,6 +60,8 @@ pub struct Schnorrkel {
impl Schnorrkel {
/// Create a new algorithm with the specified context.
///
/// If the context is greater than or equal to 4 GB in size, this will panic.
pub fn new(context: &'static [u8]) -> Schnorrkel {
Schnorrkel {
context,